Tilt Switch Versions
Displaying the version and its functions with examples.
Version 01
In this function, you must specify the digital pin corresponding to the module you are using.

Example
This function reads values from the pin and can be used inside an if-statement or assigned as a value.