Read values of the accelerometer