Android device sensors

Need help!

After a factory reset, the sensors stopped working. The built-in self-diagnosis program does not detect them. Termux is. Can this program enable sensors?
Device
ASUS ZENFONE MAX2 ZB633KL
See the picture below for device details. Device without root