use sensor_id and sensor_name from database