Try to clean your proximity sensor and recalibrate it in Settings > Maintenance.
If that doesn’t work please continue here: