Read accelerometer value