IRIV IO Controller - Send Sensor readings to IRIV PiControl using MQTT
Tutorial on sending RS-485 humidity & temperature data from IRIV IO Controller to IRIV PiControl via MQTT, with Mosquitto and Paho MQTT setup.

Hardware Setup
- IRIV IO Controller (running CircuitPython)
- IRIV PiControl (acting as MQTT broker and subscriber)
- RS-485 Modbus humidity & temperature sensor
- Ethernet network setup (router/switch, cables, USB-C for power & programming)
System Architecture
- The IRIV IO Controller collects real-time data from the RS-485 sensor.
- It publishes the data to the MQTT broker (IRIV PiControl).
- The PiControl, as a subscriber, receives and monitors the data.
PiControl Configuration (Broker Role)
- SSH access to PiControl
- Install Paho MQTT (
pip3 install paho-mqtt
) - Install and enable Mosquitto (
sudo apt install mosquitto mosquitto-clients
,systemctl enable/start mosquitto
) - Configure
mosquitto.conf
withallow_anonymous true
andlistener 1883
IRIV IO Controller Configuration
- Connect RS-485 sensors to the IO Controller.
- Use CircuitPython to publish sensor readings to PiControl via MQTT.