The RobotGeek Tilt Sensor is a fast and flexible way to add basic orientation sensing to your Arduino Project. By reading this sensor as a digital input, you can determine if your project is tilted or not.
This sensor is unique because of the orientation of its ports. Instead of having the tilt switch soldered into the board, there are two 2-pin female ports. This allows you to orient your tilt vertically or horizontally to suit your project best.
If you need your tilt switch to be further away from your LED driver, just add a 2-pin Jumper cable and a 2-pin Coupler to extend your tilt switch or mount it at a different angle..
Documentation
Resources