The IR Detector employs the TCRT5000 sensor for IR reflection indicator. With a variant resistor for comparator setting, a value 0 or 1 will be returned instead of the distance.