updated data logger to get accelerometer values