The Vibration Switch Module KY-002 detects shaking and knocking. When the module is moved, a spring mechanism will close the circuit sending a short high signal.
This module consists of a conductive spring, a 10k resistor, and 3 male header pins. Knocking or shaking the module will cause the spring to momentarily close the circuit.