LG G2 proximity sensor
Had similar issue with G2 after display replacement. Unfortunately this could be solved only by replacing the proximity sensor itself (via warranty repair). From the information I found out on the web 

The most disturbing issue was that I could not unlock the phone in dark light environment (the screen immediately turned off when I tried to go past the lockscreen).