Did they really stop working or is the tool you are using incorrect?
If the tool, it could have been broken by a recent update.
If the sensors are really not working, 1) what have you recently installed? 2) have you forced a reboot and tried again? 3) Did you try booting into safe mode and see if they are still not working?
To boot safe mode, turn phone on, hold power button until Power Off banner appears, long-press on Power Off banner until Boot safe mode button appears.
Do you think a hard reset could help?
Well ... As of this point , it's good to try a factory reset ..
and do Rom flash back to original .. then go from there ..