This tutorial shows you how to use a Piezo element to detect vibration, in this case, ... If the sensors output is stronger than a certain threshold, your Arduino will ...
arduino.cc