MQTT, Modbus TCP/RTU, DHT11 and display projects for ESP32, ESP8266 (NodeMCU), Seeed XIAO ESP32C3, ESP32-C3 Super Mini and WEMOS D1 Mini
If these tutorials help you, connect with us on social media:
This is the tutorial companion repository for the Fusion Automate YouTube channel. Each board folder contains Arduino sketches, wiring diagrams (Fritzing), library setup screenshots and example code used in our step-by-step videos — covering MQTT, Modbus TCP/RTU, sensor publishing (DHT11, SHT20) and small display projects.
Tutorial status legend:
| Icon | Meaning |
|---|---|
| 🆓 | Free video tutorial available |
| ⌛ | Tutorial in progress — sketch is here, video coming soon |
| Board | Folder | What you'll find |
|---|---|---|
| ESP32 | ESP32/ |
MQTT broker tutorials using PicoMQTT — basic broker, custom TCP port, secure broker with username/password authentication |
| ESP8266 (NodeMCU) | ESP8266/ |
The largest collection — MQTT publishing (DHT11 → Mosquitto/HiveMQ/Ignition SCADA), secure MQTT broker (with WiFi AP mode), Modbus TCP client & server, Modbus RS485 master & slave, Modbus TCP → MQTT converter, WS2812B LED control over Modbus |
| Seeed XIAO ESP32C3 | XIAO ESP32C3/ |
DHT11 reading + publishing to HiveMQ, Modbus TCP client/server, Modbus TCP → MQTT converter, 1602 LCD desk clock with 3D-printed case, Android Auto experiments |
| ESP32-C3 Super Mini | ESP32-C3 Super Mini/ |
Getting started — Blink |
| WEMOS D1 Mini | WEMOS D1 Mini/ |
Getting started — Blink |
- ✅ MQTT — brokers on-device (PicoMQTT, secure ESP8266 broker with AP mode), publishing sensor data to Mosquitto / HiveMQ, integration with Ignition SCADA (MQTT Engine module)
- ✅ Modbus TCP — client & built-in server examples (coils, holding registers, input registers)
- ✅ Modbus RTU (RS485) — master and slave with wiring diagrams
- ✅ Protocol bridges — Modbus TCP → MQTT converter (single & multiple holding registers)
- ✅ Sensors — DHT11, SHT20 RS485 transmitter
- ✅ Actuators — WS2812B addressable LEDs, digital pin control over Modbus
- ✅ Projects — 1602 LCD desk clock (3D-printable case included), Android Auto on XIAO ESP32C3
- ✅ Every tutorial includes sketch + connection diagram; most include a video and/or blog post
ESP/
├── ESP32/ # PicoMQTT broker tutorials (video-linked)
├── ESP32-C3 Super Mini/ # Getting started
├── ESP8266/ # MQTT, Modbus TCP/RTU, DHT11 (full tutorial index in its README)
│ ├── DHT11_MQTT_NodeMCU_Publish/
│ ├── MQTT Broker/
│ ├── Modbus Client/
│ ├── Modbus Client + MQTT Publisher/
│ ├── Modbus Master/
│ ├── Modbus Server/
│ └── Modbus Slave/
├── WEMOS D1 Mini/ # Getting started
├── XIAO ESP32C3/ # Desk clock, Android Auto, DHT11, MQTT, Modbus
│ ├── Desk Clock/ # Code + connection diagram + 3D printing files
│ ├── ESP32_Android_Auto/
│ ├── Modbus/
│ └── How to ... DHT11 .../ # Step-by-step sensor & MQTT tutorials
└── README.md
Full tutorial lists with video and blog links live in each board's README.md — start with ESP8266/README.md and ESP32/README.md.
- Install the Arduino IDE
- Add the board packages via File → Preferences → Additional Board Manager URLs:
- ESP32 / XIAO ESP32C3 / ESP32-C3 Super Mini:
https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json - ESP8266 (NodeMCU / WEMOS D1 Mini):
https://arduino.esp8266.com/stable/package_esp8266com_index.json
- ESP32 / XIAO ESP32C3 / ESP32-C3 Super Mini:
- Install the libraries used across tutorials (Library Manager):
- PicoMQTT — on-device MQTT broker
- modbus-esp8266 — Modbus TCP/RTU client & server
- DHT sensor library (Adafruit) — DHT11
- FastLED — WS2812B LEDs
- Open any sketch, select your board and port, and follow the matching video
Found an issue in a sketch or wiring diagram? Open an Issue — pull requests are welcome.