GP2Y0A41SK0F SHARP IR Distance Measuring Sensor Unit 4 To 30 CM With cable.This little unit uses a beam of infrared light to reflect off an object to measure its distance.
Because it uses beam triangulation to calculate distance, it is able to provide consistent and reliable readings which are less sensitive to temperature variation or the object’s reflectivity.The sensor outputs an analog voltage corresponding to the distance of the object, easily read by an Arduino, PIC, Raspberry PI, or any other ADC chip.