Get sensorid from DB