So... I've had this problem since I bought my S4. The previous owner said he'd replaced the sensor with a genuine part just before selling it but if I'm honest I have my doubts. The sensor looks brand new but genuine is debatable, cheap eBay jobby looks more realistic.
I only have a basic fault...