How to connect and share data with multiple sensors

Do you at least remember you have already asked about this and there is code for it?? How to interface two RaspberryPis over MQTT with Cayenne - #5 by Markovicz1