added --offset option to allow adjustment of sensor data