
1. CONNECT THE LED STRIP
The green wire from the LED strip is the Data
wire, red is Power, and white is Ground. Connect
the white wire to the ground of your power
source, and the red wire to 5V of the power
source. Connect the green wire to Digital 3 on
the Arduino (Figure
A
). I used a 1 meter, 60
count LED strip and cut that in half to make two
separate garage sensors. You can use whatever
number of LEDs works for your garage, just
make sure you change the NUM_LEDS value in the
Arduino code to whatever number you have.
2. CONNECT THE ULTRASONIC
SENSOR
Place the ultrasonic distance sensor on the
breadboard. Then connect it to the Arduino:
sensor ...