
Publish DHT11 Data to a Modbus TCP Server with NodeMCU
Turn a NodeMCU ESP8266 into a Modbus TCP server that exposes DHT11 temperature and humidity readings. Arduino IDE code plus Modscan client testing.
[ tag filter ]
12 posts

Turn a NodeMCU ESP8266 into a Modbus TCP server that exposes DHT11 temperature and humidity readings. Arduino IDE code plus Modscan client testing.

Publish DHT11 temperature and humidity from a XIAO ESP32C3 to its built-in Modbus TCP server, then read the registers in a Modbus client. Full sketch.

Expose holding registers on a Seeed Studio XIAO ESP32C3 by building a Modbus TCP/IP server in the Arduino IDE. Full sketch and client verification.

Switch the digital pins of a NodeMCU ESP8266 on and off through Modbus TCP. Arduino sketch with a holding-register API plus Modscan testing steps.

Read a DHT11 sensor on a Raspberry Pi Pico W with MicroPython and publish temperature and humidity to an MQTT broker. Complete code and broker setup.

Read the Raspberry Pi Pico W's on-board temperature sensor with MicroPython and stream readings to an MQTT broker. Sensor maths and publish code.

Build a Modbus TCP/IP server on a NodeMCU ESP8266 with the Arduino IDE and the ModbusIP_ESP8266 library. Register setup, code and client testing.

Install a MicroPython Modbus library on a Raspberry Pi Pico W using Thonny — download the library, connect the board and test the installation.

Read holding registers from a Modbus TCP server with a Seeed Studio XIAO ESP32C3 acting as the client. Arduino sketch, register maps and client testing.

Read input registers over Modbus RTU from a Raspberry Pi Pico W with MicroPython. Wiring, library setup and a working read script for sensor data.

Read holding registers from a Modbus RTU device with a Raspberry Pi Pico W running MicroPython. UART wiring, the Modbus library and example reads.

In the realm of IoT (Internet of Things) and IIoT (Industrial Internet of Things), the ability to collect and store data efficiently is paramount. One common challenge faced by pro…