Support Sensors not working on S4

view story

http://androidforums.com – I have always been an iPhone user and just recently switched to Galaxy S4, so I'm relatively new to android. After 3 weeks of usage the sensors suddenly stopped working, so accelerometer is not functioning, neither are the light and proximity sensors and these are the most important ones for most of the features to work. I did some basic troubleshooting, checked the settings and even did factory reset a couple of times but no change. This led me to believe that its a hardware issue but I just noticed that accelerometer is working for the camera but not for any other app. So, now I'm not sure i (General)