- Go to Settings->General->Reset->Reset All Settings
- Reboot your device
thats it. A simple test can be done by calling your voice mail an during the call just put your finger on the sensor (it's located left beside the camera on IPhone5). The sensor will turn of the display once you finger approaches the sensor.