This project will use a tilt sensor to control LED light. When the breadboard is tilting, the LED will light up.
Step 2 – Down Load tilt.ino sketch file and load it into Arduino
Step 3 – Test the tilt sensor. Tilt the breadboard, the LED will light up. If you open serial monitor, you will see tilt value switching between 1023 and 0 when you change the angle of the breadboard.