What is a RS485 sensor ?
The RS485 is a robust differential serial interface that allows for the connection of up to 32 sensors on the same bus, over distances of up to 1,200 meters.
RS485 sensors are often intelligent transmitters that combine:
- a temperature sensor (PT100, thermocouple, NTC, etc.),
- an A/D converter,
- and a Modbus RTU communication module.
Each sensor has a unique address on the bus.
Operating principle
The sensor measures the temperature through its internal or external probe, converts the signal, and then sends the data over the differential RS485 line (A/B).
The master (PC, PLC, or data logger) queries the slaves via Modbus RTU.
Example of a Modbus frame:
[ID] [03] [00 01] [00 01] [CRC_L] [CRC_H]
→ Typical response:
[ID] [03] [02] [00 19] [CRC_L] [CRC_H]
💡 0x0019 = 25 °C in binary coding (resolution 0.1 °C).
Example of digital conversion (Python - ModBus RTU)
from pymodbus.client import ModbusSerialClient client = ModbusSerialClient(port='/dev/ttyUSB0', baudrate=9600, parity='N', stopbits=1) client.connect() result = client.read_holding_registers(1, 1, unit=2) # Adresse 2, registre 1 temp = result.registers[0] / 10.0 print(f"Température : {temp:.1f} °C") client.close()
✅ Example output:
Temperature: 24.7 °C
Principle diagram
[PC / Automate]───[USB–RS485 Adapter]───(A/B)───[Sensor 1]───[Sensor 2]───...
💡 The RS485 bus can exceed 1 km with shielded twisted cable (e.g., Cat. 6 STP).
Application areas
🏭 Industrial automation and thermal processes
⚙️ HVAC (heating, ventilation, air conditioning)
🌿 Greenhouses, controlled environment agriculture
🧪 Laboratories, test benches, data centers
🚧 Long-distance multipoint networks