The Proximity Sensor lets you determine how close the face of a device is to an object. This sensor is typically used to determine whether a handset is being held up to a person's ear. The proximity sensor is located above the screen close to earpiece speaker and light sensor.
Typical location of proximity sensor