function need sensorID