The Sharp IR Distance Sensor GP2Y0A21YK0F uses a beam of infrared light to reflect off an object to measure its distance.