Toggle for accelerometer