For this tutorial, you’ll need: Ultrasonic Sensor HC-SR04 Led 5MM Blue & Yellow Arduino UNO 2 x Resistor 330E BreadBoard Jumper Wires Battery 9V Snap to DC cable Watch this full video: Code: long d; //distance variable long DistanceSensor (int, int); //trigger echo define T 8 // pin 8 is […]