The Mercury switch module KY-017 is a switch that responds to movement. It uses a small mercury ball that completes the circuit when the module is tilted.
This module consists of a mercury switch, a 680Ω resistor and a LED that will light up when tilt is detected. The mercury ball will open/close the circuit when the module is rotated.