Added simple calculation for sensordata.