This project use the HC-SR04 ultrasound sensor for measuring the distance of the object.
Ultrasonic Sensor HC-SR04 and Arduino Tutorial