Sensirion Sensirion SCD30 Modbus RTU template

Sensirion SCD30

NDIR CO2 sensor module that also measures temperature and relative humidity.

The Sensirion SCD30 is an NDIR sensor module that measures CO2 concentration, temperature and relative humidity for indoor air quality in buildings and ventilation. This Modbus RTU template reads CO2, temperature and humidity and lets you set the measurement interval, self-calibration and compensation from ModbusCloud.

Protocol
Modbus RTU
Connection
RS485, 19200 baud
Registers
13, read and write
Key readings
CO2 concentration · Temperature · Relative humidity
Available commands
Measurement interval · Self-calibration · Forced recalibration · Temperature offset · Altitude compensation
Compatible models
SCD30
Last updated

Registers (13)

10 read, 8 write

NameUnitAccessAddress (Hidden until you enter your email)Function (hidden)Type (hidden)
CO2 ConcentrationppmRead40FC03float32
Temperature°CRead42FC03float32
Relative Humidity%RHRead44FC03float32
Data ReadyRead39FC03uint16
Measurement IntervalsRead and write37FC03 / FC06uint16
Automatic Self CalibrationRead and write
Forced Recalibration ValueppmRead and write
Temperature Offset°CRead and write
Altitude CompensationmRead and write
Start Measurement Ambient PressurembarWrite
Stop MeasurementWrite
Soft ResetWrite
Firmware VersionRead

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 CO2, temperature and humidity of a meeting room or classroom on one dashboard.
  • Send an alert when CO2 stays above a limit you choose, as a sign that ventilation is too low.
  • Keep the CO2 history to show how air quality changes over the day and the week.
  • Compare CO2 with the speed of a ventilation unit in a PDF report to tune its control.
  • Set the measurement interval or the altitude compensation of the sensor remotely from the portal.

Installation

  1. Pull the SEL pin of the SCD30 to VDD before power-up to select Modbus, and supply it with 3.3 to 5.5 V.

  2. Connect TX and RX of the sensor to a TTL-to-RS485 converter, and the converter's A and B to the RS485 port of the ModbusCloud Gateway.

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

  4. If the sensor has never measured, write the ambient pressure (or 0) to the start measurement register once.

  5. Check that CO2 reads around 400 to 1000 ppm indoors and that temperature and humidity look plausible.

Things to watch for

The sensor does not answer at all. What should I check?

The SCD30 only speaks Modbus when SEL is pulled to VDD at power-up; otherwise it is in I2C mode. Its serial line is 3 V TTL, not RS485, so it needs a converter. Check 19200 baud, 8N1 and address 97, and swap TX and RX if needed.

Can I put several SCD30 sensors on one bus?

Not directly. The address is fixed at 97 and the module is meant for point to point Modbus. Use one converter and one Modbus port per sensor, or a converter that can map addresses.

CO2 reads too high or drifts over time.

Check the altitude or ambient pressure setting. Self-calibration only works when the sensor sees fresh air one hour a day for at least 7 days. In a room that is never ventilated, switch it off and use a forced recalibration in fresh air instead.

What happens when I write the calibration registers?

A forced recalibration value permanently changes the CO2 calibration, so write it only with the sensor in a known reference, such as outdoor air at about 400 ppm. Temperature offset, altitude and self-calibration are stored in the sensor. Soft reset and stop measurement act at once.

Want to see how it works?

Electrician working in an open distribution board