Process Flow - Publishing sensor data
Sensor reads data
Format data as message
Connect to broker/server
Publish message to topic
Broker receives and forwards
Subscribers receive data
Done
The sensor reads data, formats it, connects to a broker, publishes the message, and subscribers receive it.