you can use this Cayenne-MQTT-Arduino/LightSwitch.ino at master · myDevicesIoT/Cayenne-MQTT-Arduino · GitHub and then set a tigger to temperature sensor but you need to use Sending MQTT messages within notification limit to avoid trigger flood.
you can use this Cayenne-MQTT-Arduino/LightSwitch.ino at master · myDevicesIoT/Cayenne-MQTT-Arduino · GitHub and then set a tigger to temperature sensor but you need to use Sending MQTT messages within notification limit to avoid trigger flood.