Infrared proximity sensor