update sensor_creator function