In this project, we will connect Arduino with Vibration sensor and LED. When no vibration is detected, Vibration sensor output is 0 (low voltage),otherwise its output is 1(high voltage)。 If Arduino get 0 (no vibration) from vibration sensor it will turn on green LED and turn off Red LED. If Arduino get 1 from vibration sensor, it will turn on Red LED and turn off green LED.
2)Parts and Devices：
1 x arduino UNO R3
1 x Vibration Sensor module
1 x Red LED
1 x USB cable
4)sample code download link：
Unzip file downloaded from above link and load the code into Arduino IDE.
When sensor is still, Green light is on and Red light is off. When you shake the sensor, red LED will flash and green LED is off. See following pictures: