Over time your sensors can stop working accurately. Try re-calibrating your device using the following method:
Wave your device in a figure of 8 pattern rotating it in different directions as you do this. If your device is very hot you may need to wait for it to cool down. You can also try switching it off and on again. Be patient as this can take a few minutes to work.
I hope this will solve your issue