One of the several sensors present on an Android device
The proximity sensor detects when the user is holding the phone close to his/her ear and either shuts off or locks the screen so he/she don't accidentally hang up the call.
Reference page for sensors: http://developer.android.com/reference/android/hardware/Sensor.html