generalize convert_to_c3: sensors and weather have different fields