Reads data from accelerometer in g's