Frequently Asked Questions:
Q: Camera and/or sensors are not working!
A: You wiped "Persist" partition using an unofficial TWRP build. You shouldn't have done that.
You'll now have to flash the latest official fastboot ROM for your device to restore this partition.