You have to recalibrate your proximity sensor in Settings -> Maintenance.
If that alone doesn’t fix it clean the screen from the inside (#disassemble) where the proximity sensor is (as seen below):
7 Likes