OK flashing this should fix it, and make your sensors normal, it worked for me, my phone was a Univision model running 4.4.2, I am not sure if this will fix a different model
https://www.mediafire.com/?518x7wizt3p2vu2
what I had to do to make this file, push the stock sensor hal to the system, delete sns.reg, boot cm12
then pull that files to keep
then push back the x9180 sensor hal, and sensors worked
to test more, after sensors worked, I flashed the sns.reg i provided to fix the stock rom, and then boot back in to cm12, and it was screwed up again, and screen was going black during calling
went back ino recovery and pushed the new sns.reg I generated and just pulled, booted back to cm12 and sensors worked and no black screen
So bottom line, the sns.reg files needs to be generated in cm12 with stock HAL or maybe a 444 rom that should have the stock HAL, and can not be gernerated by the X9180 HAL we are using in beta 1
not a big problem, as long as we have the files to flash now if we need to