The ultrasonic sensor works by sending out sound waves and counting how long it takes for them to come back ( having been reflected from the nearest object. In this circuit the ultrasonic sensor HC-SR04 plugs straight in to the Arduin, with pins 7 and 4 being used and GND and Vcc. The distance is ca... By: Robotix_au