Description: This basic tilt switch can easily be used to detect orientation. Inside the can are a pair of balls that make contact with the pins when the case is upright. Tilt the case over and the balls don't touch, thus not making a connection. According to the datasheet, the detectable angle is 30 degree.
There are numerous uses for these basic sensors, but keep in mind you might need to use some debouncing code, as the sensor isn't immune to small vibrations and such. Connection is like using a push button switch :)
This video shows how Tilt Sensor works. For more details please refer to our tutorial page: http://tutorial.cytron.com.my/2017/07/27/getting-started-tilt-sensor-sn-tilt/ Please refer to the product page for more info: https://www.cytron.com.my/p-sn-tilt?search=Tilt%2520sensor&description=1&sort=relevance&order=DESC