I too had this problem after I installed s health I just uninstalled and rebooted and I went on this app called test your android and the sensors actually worked.
if s health came with your phone I recommend rooting as you can remove system apps. From my Galaxy S4 (i9505)