---
title: "IRIV IO Controller - Send Sensor readings to IRIV PiControl using MQTT"
url: "https://maker.wiznet.io/irina/projects/iriv-io-controller-send-sensor-readings-to-iriv-picontrol-using-mqtt/"
markdown_url: "https://maker.wiznet.io/irina/projects/iriv-io-controller-send-sensor-readings-to-iriv-picontrol-using-mqtt/md"
type: "UCC: User Created Content"
author: "Raden Fati"
author_url: "https://my.cytron.io/tutorial/iriv-ioc-sending-data-from-humidity-and-temperature-sensor-to-iriv-picontrol-using-mqtt-protocol"
editor: "WIZnet"
editor_url: "https://maker.wiznet.io/"
original_author: "Raden Fati"
original_url: "https://my.cytron.io/tutorial/iriv-ioc-sending-data-from-humidity-and-temperature-sensor-to-iriv-picontrol-using-mqtt-protocol"
published: "2025-08-28"
language: "en"
likes: 0
views: 2705
comments: 0
source: "WIZnet Makers (https://maker.wiznet.io/)"
---

# 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.

Original author: Raden Fati (source: https://my.cytron.io/tutorial/iriv-ioc-sending-data-from-humidity-and-temperature-sensor-to-iriv-picontrol-using-mqtt-protocol)

## Article

**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**

1. The IRIV IO Controller collects real-time data from the RS-485 sensor.

2. It **publishes** the data to the MQTT broker (IRIV PiControl).

3. 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` with `allow_anonymous true` and `listener 1883`

**IRIV IO Controller Configuration**

1. Connect RS-485 sensors to the IO Controller.

2. Use CircuitPython to publish sensor readings to PiControl via MQTT.

---

Source: https://maker.wiznet.io/irina/projects/iriv-io-controller-send-sensor-readings-to-iriv-picontrol-using-mqtt/
