Arduino KY-017 Mercury Tilt Switch Module, it uses a small ball of mercury that completes the circuit when you tilt the module.
Features
This module includes a mercury switch, a 680 Ω resistor and an LED that will light up when a tilt is detected. The mercury ball will open/close the circuit when the module is rotated.
Operating voltage 3.3v to 5.5v