Before the repair...
Is there a Screen saver covering the sensor area? Have you tried cleaning the sensor area?
Have you tried a Soft Reset? Hold the Power + Volume Down buttons until the phone vibrates and reboots (about 10 seconds). This does not lose data...