process accelerometer readings