Liyuan Technology Liyuan Technology RS485 Temperature and Humidity Transmitter Modbus RTU template

Liyuan Technology RS485 Temperature and Humidity Transmitter

RS485 transmitter that measures relative humidity and temperature.

The Liyuan Technology RS485 transmitter measures relative humidity and temperature in rooms, greenhouses, storage and distribution rooms. This Modbus RTU template reads both values and lets you set the device address, the baud rate and the calibration values from ModbusCloud.

Protocol
Modbus RTU
Connection
RS485, 9600 baud
Registers
8, read and write
Key readings
Relative humidity · Temperature · Device address · Baud rate
Available commands
Device address · Baud rate · Temperature correction · Humidity correction
Compatible models
RS485 temperature and humidity transmitter
Last updated

Registers (8)

8 read, 6 write

NameUnitAccessAddress (Hidden until you enter your email)Function (hidden)Type (hidden)
Humidity%RHRead0FC03uint16
Temperature°CRead1FC03int16
Device AddressRead and write256FC03 / FC06uint16
Baud Rate CodeRead and write257FC03 / FC06uint16
Humidity AddressRead and write258FC03 / FC06uint16
Humidity CalibrationRead and write
Temperature CorrectionRead and write
Humidity CorrectionRead and write

Loading registers…

The ModbusCloud Gateway, front at an angle, with the RS485 terminal and the antenna connectors

Send your device list

If a device is not in the library yet, we build the template for free as soon as we have the register data.

Use cases

  • Show humidity and temperature of a greenhouse, storage room or distribution room on a dashboard, with 365 days of history.
  • Get an email when the humidity in an archive or cold store rises above your limit.
  • Watch for frost in an outdoor cabinet or freezer; temperatures below zero are read correctly.
  • Align a transmitter with a reference instrument by adjusting its calibration value remotely.
  • Check the address and baud rate of each transmitter before you add more to the same RS485 line.

Installation

  1. Connect red to +5 to 30 V DC, black to GND, yellow to RS485 A and green to RS485 B on the ModbusCloud Gateway. Terminate a long line with 120 ohm.

  2. Give each transmitter its own address before you connect several to one bus. The factory address is 1.

  3. In ModbusCloud, add a Modbus device (RTU) with address 1, 9600 baud, 8 data bits, no parity and 1 stop bit, and import this template.

  4. Check that humidity and temperature match the room.

Things to watch for

The transmitter does not answer. What should I check?

Check that yellow goes to A and green to B; swapped wires are the most common cause. Out of the box the transmitter uses address 1, 9600 baud, 8 data bits, no parity and 1 stop bit. With a USB to RS485 adapter, also check that its driver is installed.

Below freezing the temperature shows over 6500 °C.

The temperature is a signed value. A copy of the template that reads it as unsigned turns -9.7 °C into 6549.3. Keep the data type from this template.

How do I change the address or the baud rate?

Write the new value to Device Address or Baud Rate Code, then change the device settings in ModbusCloud to match. Read Baud Rate Code first while the transmitter runs at 9600: 4 means the codes run from 1 = 1200 to 6 = 19200, 3 means they run from 0 = 1200 to 5 = 19200.

How do I correct a reading that is off?

Change one calibration value by a small step and compare the reading with a reference instrument before you adjust further.

Readings drop out with many transmitters or a long cable.

Give each transmitter its own address. Power the transmitters close by, add an RS485 repeater on a long line and terminate the bus with 120 ohm.

Want to see how it works?

Electrician working in an open distribution board