added accelerometer readout example