The proximity sensor is designed for detection and not distance. Depending on the IR LED current, presence can be detected from a range of 10mm-100mm.