Want to measure distance very high distance then this is the perfect distance sensor for you this IR sensor from sharp is able to measure distance from 100 cm to 550 cm.
The GP2Y0A710 infrared sensor is a new version of GP2Y0A700 which takes a continuous distance reading and reports the distance as an analog voltage with a distance range of 1 meter (39.3") to 5.5 meter (216.5").
The interface is 5-wire JST connector (included with pins) with dual Vcc, dual Gnd, and a single output voltage. Simply provide power and ground, and read a continuous analog voltage representing distance. A software lookup table can be implemented to translate the voltages to distances.