adding Jeremy's arduino code for the accelerometer