fix for get_sensors_by_type