The proximity sensor is usually located near the earpiece of your device and is mostly used to automatically turn the screen off while you are in a call and you bring the phone to your ear, so that you do not accidentally press your screen and mess with the call.