Code for a vibration sensor for a Arduino with XBee Mesh (Zigbee) and a ADXL 335 accelerometer.