This SHARP infrared distance sensor takes a continuous distance reading and returns a corresponding analog voltage with a range of 20cm (8") to 150cm (60").