you are using channel 0
for sending data and also for receiving data. You need to change either one to another number and have a button on cayenne dashboard with same channel number. And also you are sending data continuously in the void loop()
. this will cause to hit rate limit. Have a look at this and make changes accordingly Sending MQTT messages within rate limits