Default [Q] Sensor on phone on viewcover??

Don't know where to place this question...

Does anyone know where the sensor is placed on the phone which make the phone wakeup and sleep when using the lid on viewcovers?