Sensors sense their environments like temperature or light and translate the sensed values in a form that can be read by some electronic devices like microcontrollers.
This vibration sensor senses vibrations or movements.
Where vibrations or movements are detected, the two leads will alternately short and open circuit.