in MQTT there each device is subscribed to particuler topic and data is sent on different channels. For cayenne, we have different data types along with it to identify the device type, the widget type, and its unit. You can find more info in this post Data types for Cayenne MQTT API