Also known as a digital inclinometer or digital tilt switch, is a device that measures the tilt or inclination of an object with respect to the earth's surface or a reference plane.

Two modules of the tilt sensor, mercury-based and ball-based.

Because mercury is a toxic substance, we only consider the ball-based sensor as an example.

Contains a small metal or plastic ball inside a conductive housing, housing has two or more conductive contacts


When the sensor is tilted, the ball rolls to make or break contact between the conductive elements, creating an open or closed circuit.

Change in the circuit state is then detected as a digital signal by a connected microcontroller or device.