I don't know if this helps, I had the same problem. I tried several things and I think that after i disconnected "Increase volume in pocket", the sensor started working right again.
Edit: the problem returned. I find out that my problem was only out on the sun. At home the phone worked right...