Connect Loadcell sensor with MQTT


I’m meet some problems about connecting loadcell with MQTT Keyenne.
I don’t know the reason why my code arduino don’t connect with MQTT.
Please help me



in your code there are couple of lines missing to connect to cayenne. Check it out in this example code:
Also, don’t send data from main loop, Use inbuilt CAYENNE_OUT() to send data at timed interval.


thank you


untill now I can not connect MQTT cayenne , although i used sample code.
I don’t know the reason why i can not connect them


add #define CAYENNE_DEBUG in your code and check what is the error in the serial monitor.


Along with @shramiksalgaonkar suggestions I would also recommend obscuring the username/password for Cayenne and your wifi in the first screen shot.