Using the famous HC-SR04 ultrasonic sensor has never been this easy. Just hook up 4 wires and you'll get the output in centimeters.