Since the beginning of the smartphone era, the number of smartphone users has increased dramatically. Consequently, several aspects of their use have provoked concerns from researchers. From a health-related perspective, text neck syndrome is a consequence of excessive smartphone use. Therefore, we introduce a neck posture monitoring system to help prevent text neck syndrome in smartphone users. The system operates on smartphones using the embedded rotation vector sensors and the camera for image detection. Data from the sensors and camera are used to calculate the neck angle. The results of an experiment show that the calculation algorithm is not significantly different from the photogrammetric method, which was proposed earlier as a method to measure the neck angle from a side view image. In summary, we propose a system that includes the detection and classification of the user's neck posture to raise awareness and help promote better posture to prevent text neck syndrome among smartphone users.