But Don't worry I'm here to help you
NOTE: If you are on new partition table (i.e if you flashed miui mm) use this partion name "mmcblk0p21"
Things you need
Open terminal emulater app and type
dd if=/dev/block/mmcblk0p22 of=/sdcard/persist.img
Then you will get the persist.img file on your storage. copy and take it on a safe place... Like on OTG Drive or On PC...
Now copy the downloaded "persistnew.img" file to Internal storage and on terminal emulater app type
dd if=/sdcard/persistnew.img of=/dev/block/mmcblk0p22
Now Reboot... Now check your sensors with "Sensor Box" app on play store Hurray!! Your sensors will be working again
Thanks to @satvikvg (for new partition name)