accelerometer reading is working