Share your experience!
Settings > about phone > diagnostics > test > test proximity sensor. Also, test it in >>> safe mode
Just to clarify, a software repair is more than a factory reset, it erase all previous settings and reinstall a fresh copy of the os that should be, at this point, worry and bug free.
If after a software repair the issue persist then you can contact local support or inform Sony about the issue, they may verify and eventually release a bug fix.
I have this problem on a mates phone, took the back off, and when you gently press down on the motherboard where the sensor is, it works. A hair width too far from the screen with the new software update. So im working on a fix....no apps work, this sensor is either on or off so cant be calibrated, but if I can get the sensor closer to the screen it will work