Mapping functions written but not tested since no sensordata available.