Proximity sensor
Combine an IR emitter, a range sensor and an ambient light sensor
http://www.st.com/web/catalog/mmc/FM132/SC626/PF260441