read accelerometer data
Duration in s: