Component guide · Intermediate · 5 min read
RS485 Modbus Temperature and Humidity Sensors

XY-MD02, XY-MD01, Renke RS-WS, SN-3002, Asair, DFRobot, Seeed)
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
RS485 Modbus temperature and humidity sensors send readings over two twisted wires up to about 1 km, so they suit factories, cold rooms, server rooms and greenhouses. They run on 5 to 30 V, answer at address 1 and 9600 baud by default, and hold temperature and humidity in two registers scaled by 10. Wall, duct, DIN rail and probe versions use the same idea.
Key specs at a glance
- Supply
- 5 to 30 V DC (10 to 30 V on most Renke and SN-3002)
- Bus
- RS485, Modbus RTU
- Default
- Address 1, 9600 baud, 8N1 (check the label)
- Accuracy
- About plus or minus 0.5 degrees C and 3% RH
- Registers
- Two values x10: humidity and temperature (order varies)
- Mounting
- Wall box, duct probe, DIN rail, cable probe
Models in this guide
These are alternatives. Pick the one that fits your project; you only need one.
Option 1XY-MD02 Temperature & Humidity Transmitter Modbus – RS485 DIN Rail Mount₹891
Option 2XY-MD01 SHT20 Temperature Humidity Transmitter with RS485 Modbus – 1M Shell Cable₹646
Option 3Sensirion SHT20 Temperature & Humidity Transmitter Module XY-MD01 – RS485 Modbus₹499
Option 4MD02 Temperature and Humidity Transmitter SHT20 Sensor – RS485 Modbus₹525
Option 5Renke RS-WS-N01-2-4 Industrial Temperature & Humidity Sensor Wall Mount – RS485 Modbus, IP65₹4,839
Option 6Renke RS-WS-N01-2D-LCD-EX Temperature & Humidity Sensor with LCD Display – RS485/4-20mA/0-10V Output, IP65₹4,189
What the RS485 Modbus temperature and humidity sensors is
RS485 temperature and humidity sensors are wall or probe transmitters that report temperature and RH over Modbus RTU for server rooms, warehouses, cold rooms and greenhouses.
The register map is the one thing that differs. Renke and SN-3002 sensors usually return humidity then temperature from holding register 0 (function 03). XY-MD02 and XY-MD01 return temperature then humidity from input register 1 (function 04). Read the manual or try both.
Every sensor on one bus needs a different address. Change it by writing the address register over Modbus, one sensor at a time.
RS485 Modbus temperature and humidity sensors pinout
The pins on the RS485 Modbus temperature and humidity sensors and what each one does.
| Pin | Function |
|---|---|
| Brown / red | V+ |
| Black | GND |
| Yellow / blue | RS485 A+ |
| Green / white | RS485 B- |
- Brown / red
- V+
- Black
- GND
- Yellow / blue
- RS485 A+
- Green / white
- RS485 B-
Wiring the RS485 Modbus temperature and humidity sensors
Use twisted pair and add a 120 ohm resistor across A and B at both ends of long buses. Share ground between the sensor supply and the controller.
| RS485 Modbus temperature and humidity sensors pin | Arduino Uno | ESP32 |
|---|---|---|
| Sensor A+ (often yellow or blue) | MAX485 A | MAX485 A |
| Sensor B- (often green or white) | MAX485 B | MAX485 B |
| Sensor V+ (brown or red) | 10 to 30 V supply + | 10 to 30 V supply + |
| Sensor GND (black) | Supply - and board GND | Supply - and board GND |
| MAX485 RO / DI | Software serial pins | GPIO 16 (RX2) / GPIO 17 (TX2) |
| MAX485 DE + RE | D4 | GPIO 4 |
- Sensor A+ (often yellow or blue)
- Arduino Uno:
- MAX485 A
- ESP32:
- MAX485 A
- Sensor B- (often green or white)
- Arduino Uno:
- MAX485 B
- ESP32:
- MAX485 B
- Sensor V+ (brown or red)
- Arduino Uno:
- 10 to 30 V supply +
- ESP32:
- 10 to 30 V supply +
- Sensor GND (black)
- Arduino Uno:
- Supply - and board GND
- ESP32:
- Supply - and board GND
- MAX485 RO / DI
- Arduino Uno:
- Software serial pins
- ESP32:
- GPIO 16 (RX2) / GPIO 17 (TX2)
- MAX485 DE + RE
- Arduino Uno:
- D4
- ESP32:
- GPIO 4
Example code
A minimal sketch to check the part works.
#include <ModbusMaster.h> // library: ModbusMaster by Doc Walker
const int DE_RE = 4; // MAX485 DE and RE tied together
ModbusMaster node;
void pre() { digitalWrite(DE_RE, HIGH); }
void post() { digitalWrite(DE_RE, LOW); }
void setup() {
Serial.begin(115200);
Serial2.begin(9600, SERIAL_8N1, 16, 17); // RX, TX to the MAX485 RO, DI
pinMode(DE_RE, OUTPUT); post();
node.begin(1, Serial2); // slave address 1 (factory default on most)
node.preTransmission(pre);
node.postTransmission(post);
}
void loop() {
// Many sensors: function 03, register 0 = humidity x10, register 1 = temperature x10.
// XY-MD02 style: use readInputRegisters(1, 2) and the order is temperature, humidity.
uint8_t r = node.readHoldingRegisters(0x0000, 2);
if (r == node.ku8MBSuccess) {
float h = node.getResponseBuffer(0) / 10.0;
float t = (int16_t)node.getResponseBuffer(1) / 10.0; // signed for below zero
Serial.printf("RH %.1f %% T %.1f C\n", h, t);
} else {
Serial.printf("Modbus error 0x%02X\n", r);
}
delay(2000);
}Setup and tuning
usually 5 to 30 V DC.
A and B to the RS485 bus on shielded twisted pair; terminate the bus ends.
read the holding registers; values are often temperature × 10 and RH × 10.
set a unique address for each sensor on the bus.
mount away from doors, heaters and direct sun.
What you need
Shop this list20 of 20 found in our store · ₹67,279
Generic XY-MD02 Temperature & Humidity Transmitter Modbus – RS485 DIN Rail Mount: the part this guide coversXY-MD02 Temperature & Humidity Transmitter Modbus – RS485 DIN Rail Mount₹891
XY-MD01 SHT20 Temperature Humidity Transmitter with RS485 Modbus – 1M Shell Cable: another version this guide coversXY-MD01 SHT20 Temperature Humidity Transmitter with RS485 Modbus – 1M Shell Cable₹646
Sensirion SHT20 Temperature & Humidity Transmitter Module XY-MD01 – RS485 Modbus: another version this guide coversSensirion SHT20 Temperature & Humidity Transmitter Module XY-MD01 – RS485 Modbus₹499
MD02 Temperature and Humidity Transmitter SHT20 Sensor – RS485 Modbus: another version this guide coversMD02 Temperature and Humidity Transmitter SHT20 Sensor – RS485 Modbus₹525
Renke RS-WS-N01-2-4 Industrial Temperature & Humidity Sensor Wall Mount – RS485 Modbus, IP65: another version this guide coversRenke RS-WS-N01-2-4 Industrial Temperature & Humidity Sensor Wall Mount – RS485 Modbus, IP65₹4,839
Renke RS-WS-N01-2D-LCD-EX Temperature & Humidity Sensor with LCD Display – RS485/4-20mA/0-10V Output, IP65: another version this guide coversRenke RS-WS-N01-2D-LCD-EX Temperature & Humidity Sensor with LCD Display – RS485/4-20mA/0-10V Output, IP65₹4,189
Renke RS-WS-N01-8-EX Flat Rail Type Modbus Temperature and Humidity Sensor, -40°C ~ +60°C, 0%RH ~ 95%RH, RS485: another version this guide coversRenke RS-WS-N01-8-EX Flat Rail Type Modbus Temperature and Humidity Sensor, -40°C ~ +60°C, 0%RH ~ 95%RH, RS485₹1,549
Renke RS-WS-N01-9A-EX Industrial Duct-Mounted Temperature & Humidity Sensor, 10-30V DC, RS485 Modbus-RTU: another version this guide coversRenke RS-WS-N01-9A-EX Industrial Duct-Mounted Temperature & Humidity Sensor, 10-30V DC, RS485 Modbus-RTU₹6,809
Renke RS-WS-N01-9A-LCD-EX Industrial Duct-Mounted Temperature & Humidity Sensor – RS485 Modbus, LCD Display: another version this guide coversRenke RS-WS-N01-9A-LCD-EX Industrial Duct-Mounted Temperature & Humidity Sensor – RS485 Modbus, LCD Display₹7,789
Renke RS-WS-N01-9TH-EX Duct-Mounted Temperature & Humidity Sensor – RS485: another version this guide coversRenke RS-WS-N01-9TH-EX Duct-Mounted Temperature & Humidity Sensor – RS485₹3,889
Renke SHT20-59-B High Temperature Sensor Probe, 59mm Length – RS485 Modbus-RTU: another version this guide coversRenke SHT20-59-B High Temperature Sensor Probe, 59mm Length – RS485 Modbus-RTU₹2,239
Taidacent SN-3002-WS-N01-4 Wall-Mounted Temperature and Humidity Sensor – RS485 Modbus, 4-20mA, 0-10V Output: another version this guide coversTaidacent SN-3002-WS-N01-4 Wall-Mounted Temperature and Humidity Sensor – RS485 Modbus, 4-20mA, 0-10V Output₹1,329
DFRobot RS485 Temperature and Humidity Sensor: another version this guide coversDFRobot RS485 Temperature and Humidity Sensor₹3,332
Seeed Studio Industrial RS485 Modbus Temperature and Humidity Sensor: another version this guide coversSeeed Studio Industrial RS485 Modbus Temperature and Humidity Sensor₹4,342
Asair AGH3485 Temperature And Humidity Transmitter – RS485 Modbus RTU, 0-10V/4-20mA Output: another version this guide coversAsair AGH3485 Temperature And Humidity Transmitter – RS485 Modbus RTU, 0-10V/4-20mA Output₹1,469
Asair AW5485 Temperature & Humidity Transmitter Module – RS485 Modbus RTU Output: another version this guide coversAsair AW5485 Temperature & Humidity Transmitter Module – RS485 Modbus RTU Output₹1,799
Wittelb WIN-SN-TNH-AHT20-M Digital Temperature & Humidity Sensor with RS485 Modbus & Display: another version this guide coversWittelb WIN-SN-TNH-AHT20-M Digital Temperature & Humidity Sensor with RS485 Modbus & Display₹5,348
Renke RS-KB-1-N01-4-EX 22.4-inch Temperature & Humidity Display Panel – RS485 Modbus, DC 10-30V: another version this guide coversRenke RS-KB-1-N01-4-EX 22.4-inch Temperature & Humidity Display Panel – RS485 Modbus, DC 10-30V₹15,379
ESP32-WROOM-32 38-pin development board: for Wi-Fi logging and dashboardsESP32-WROOM-32 38-Pin Development Board₹389
MAX485 RS-485 to TTL module: to read the Modbus sensor from a microcontrollerMAX485 RS-485 to TTL Module₹28
Alternatives and when to choose them
- Modbus RTU with Arduino and ESP32: the protocol in detail.
- Humidity transmitters: 4 to 20 mA outputs.
- RS485 to 4G MQTT gateway: send readings to the cloud.
Common mistakes to avoid
- Duplicate addresses.
- Forgetting the ×10 scaling.
- No termination on long cables.
- Mounting near doors or heaters.
Frequently asked questions
How do I read an RS485 temperature sensor with ESP32?
Use a MAX485 or auto-direction RS485 module and a Modbus library.
Why does the reading show 253 instead of 25.3?
The register stores tenths of a degree, so divide the value by 10.
How long can the RS485 cable be?
Up to about 1200 m with good twisted pair and termination.
Can I connect many sensors on one cable?
Yes. Many sensors can share one cable if each has a unique address.
Why does it read high humidity in cold rooms?
Condensation; use sensors rated for high humidity and heated probes.
Parts for this guide
- ₹891View
- ₹646View
- ₹499View
- ₹525View
- ₹4,839View
Renke RS-WS-N01-2D-LCD-EX Temperature & Humidity Sensor with LCD Display – RS485/4-20mA/0-10V Output, IP65₹4,189View
Renke RS-WS-N01-8-EX Flat Rail Type Modbus Temperature and Humidity Sensor, -40°C ~ +60°C, 0%RH ~ 95%RH, RS485₹1,549View
Renke RS-WS-N01-9A-EX Industrial Duct-Mounted Temperature & Humidity Sensor, 10-30V DC, RS485 Modbus-RTU₹6,809View
Renke RS-WS-N01-9A-LCD-EX Industrial Duct-Mounted Temperature & Humidity Sensor – RS485 Modbus, LCD Display₹7,789View- ₹3,889View
- ₹2,239View
Taidacent SN-3002-WS-N01-4 Wall-Mounted Temperature and Humidity Sensor – RS485 Modbus, 4-20mA, 0-10V Output₹1,329View- ₹3,332View
- ₹4,342View
- ₹1,469View
- ₹1,799View
- ₹5,348View
- ₹15,379View
- ₹389View
- ₹28View
- ₹74View
- ₹298View
- ₹359View
Keep learning
Sources
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.



