Didn't test this, but using a vibration sensor (modules are available under the namee "SW-420 Vibration Tilt Sensor Alarm" at big market places) might also be an option. Should provide digital and/or analog signals. Best success with your project!