Same-day dispatch before 2 PM · Free delivery over ₹999 · GST invoices Get the appPrices incl. GST
Geekobot
Snap & SendNEWGeeko AIWhere's myOrder
Log in
Products
  • Projects
    • Component guidesHow parts work, with code you can run
    • Learning pathsFrom your first LED to your first robot
    • Workshops & eventsOnline sessions for makers and classes
    • ElectrolarkFree guided builds, simulator and certificates
    • Students & teachersStudent discount and classroom help
    • CommunityShare builds and ask other makers
    • CalculatorsOhm's law, LED resistor, 555 and 100+ more
    • Circuit builderWire parts and run the circuit, powered by Electrolark
    • Geeko AIAsk what to buy or how to wire it
    • Snap & SendPhotograph a part or list, we find it
    • Part finderAnswer a few questions, get the right part
    • Compatibility checkWill these two parts work together?
    • Compare partsSpecs side by side
    • Business & bulk ordersGST invoices, credit and volume prices
    • Request a quotationSend your list, get a quote
    • Classroom kitsPer-student kits and lab bundles
    • Gift cardsFor students, teams and events
  • Atal Tinkering Lab
BOM to cart
Geekobot

Components, kits and know-how for makers, students, engineers, labs and businesses across India.

Ask Geeko AIOrders, parts and projects, any timeEmail supportReply within 1 working dayGet the Geekobot appAdd it to your home screen, free

Follow us

Shop

  • Boards & SBCs
  • Sensors & Modules
  • IoT & Wireless
  • Drone & FPV
  • 3D Printing
  • Filaments & Resins
  • Motors & Drivers
  • Power & Batteries
  • Semiconductors
  • Passive
  • Displays & LEDs
  • Switches & Relays
  • Wires & Cables
  • Prototyping
  • Tools & Test
  • Robotics
  • STEM Kits
  • Atal Tinkering Lab
  • Mechanical Parts
  • Audio

Orders

  • Track your order
  • Help & support
  • Shipping and delivery
  • Refunds and cancellation
  • Contact us

Learn

  • Projects
  • Geeko AI project assistant
  • Learning paths
  • Guides
  • Calculators
  • Electrolark: free guided builds

Part tools

  • Part finder
  • Compare parts
  • Will it work with my board?

Institutions

  • Classroom kits
  • Atal Tinkering Lab
  • Students & teachers
  • Workshops & Events

Business

  • Business & education
  • Request a quotation
  • BOM bulk upload
  • Quick order by SKU

Company

  • About Geekobot
  • Community
  • Gift cards
  • Terms & conditions
  • Privacy policy
  • Product directory
  • Sitemap

© 2026 Geekobot, a trade name of OLatus Systems Private Limited. All rights reserved.

20, 1st Floor, Neeladri Complex, 10th Cross, Sampige Rd, 2nd Main, Malleshwaram, Bengaluru, Karnataka 560003 · GSTIN 29AACCO0462F1ZM

+91 91810 15607 · connect@geekobot.in · Monday to Saturday, 10 AM to 2 PM IST

UPI · CARDS · NETBANKING · GST INVOICES

ShopProjectsGeeko AIGuides
Compare 0 parts →
Log in

Shop by category

Shop all components
  • Boards & SBCs1,910 products
    • Alternative Single Board Computers
    • Arduino Ecosystem
    • FPGA & Logic Boards
    • Microcontroller & Wireless Boards
    View all
  • Sensors & Modules4,701 products
    • Biomedical & Heart Rate
    • Current, Voltage & Power
    • Force, Weight & Pressure
    • Gas, Weather & Environmental
    View all
  • IoT & Wireless2,314 products
    • RF Modules
    • RFID & NFC
    • Antennas & RF Accessories
    • Cameras & Smart Vision
    View all
  • Drone & FPV3,558 products
    • Flight Control & Navigation
    • FPV Video & Optics
    • Frames & Structural Parts
    • Motors & Propulsion
    View all
  • 3D Printing2,204 products
    • 3D Printers
    • 3D Scanners & Digitizers
    • Laser Engravers & Cutters
    • Material Management & Upgrades
    View all
  • Filaments & Resins1,472 products
    • Filaments
    • Photopolymer Resins
    View all
  • Motors & Drivers463 products
    • BLDC Motor Drivers
    • DC & Geared Motors
    • DC Motor Drivers
    • Linear Actuators & Solenoids
    View all
  • Power & Batteries557 products
    • Battery Holders & Connectors
    • Breadboard Power
    • Chargers & BMS
    • DC-DC Converters
    View all
  • Semiconductors295 products
    • Diodes & Rectifiers
    • Interface & RF Encoder ICs
    • Logic ICs (74xx)
    • Logic ICs (CD4000)
    View all
  • Passive67 products
    • Capacitors
    • Circuit Protection
    • Crystals & Oscillators
    • Inductors
    View all
  • Displays & LEDs572 products
    • 7-Segment & Dot Matrix
    • Addressable LEDs
    • Character LCDs
    • Graphic LCDs
    View all
  • Switches & Relays184 products
    • Keypads & Touch
    • Push Buttons & Tactile
    • Relay Modules
    • Relays
    View all
  • Wires & Cables233 products
    • Board-to-Wire Connectors
    • Crimp & Splice
    • Headers & Dupont
    • Heat Shrink & Sleeving
    View all
  • Prototyping101 products
    • Breadboards
    • Interface Modules
    • PCBs & Perfboards
    View all
  • Tools & Test717 products
    • Bench Power Supplies
    • Hand Tools
    • Measuring Tools
    • Meters & Testers
    View all
  • Robotics180 products
    • Humanoid & Legged Robots
    • Robot Chassis & Platforms
    • Robotic Arms & Grippers
    • Wheels & Casters
    View all
  • STEM Kits268 products
    • Arduino Learning Kits
    • Coding & IoT Kits
    • Early Coding (Ages 3-8)
    • Invention Kits
    View all
  • Atal Tinkering Lab196 products
    • Package 1: Electronics, Robotics, IoT and Sensors
    • Package 2: Rapid Prototyping Tools
    • Package 3: Mechanical, Electrical and Measurement Tools
    • Package 4: Power Supply, Accessories and Safety Equipment
    View all
  • Mechanical Parts212 products
    • Bearings
    • Brackets & Mounts
    • Couplers
    • Fasteners & Standoffs
    View all
  • Audio109 products
    • Amplifier Modules
    • Buzzers & Sirens
    • Speakers
    View all
  1. Home
  2. ›Guides
  3. ›Sensors
  4. ›Sensirion SCD30 NDIR CO2, Temperature and Humidity Sensor

Component guide · Intermediate · 3 min read

Sensirion SCD30 NDIR CO2, Temperature and Humidity Sensor

Wiring and Code

By Geekobot Learning Team · Updated 29 Oct 2026

I'm using
Wiring, code and the Run it panels follow your board.
On this page
Short answerWhat the Sensirion SCD30 CO2 sensor isSensirion SCD30 CO2 sensor pinoutWiring the Sensirion SCD30 CO2 sensorExample codeSetup and tuningWhat you needAlternatives and when to choose themCommon mistakesFAQsParts and next steps
Short answer

The Sensirion SCD30 is a dual-channel NDIR CO2 sensor with built-in temperature and humidity, so one board gives the three main indoor air values. It reads 400 to 10,000 ppm with about plus or minus 30 ppm accuracy over I2C at address 0x61 or Modbus. It suits classrooms, offices and ventilation control, and its larger optics make it more stable than tiny CO2 sensors.

Key specs at a glance

Supply
3.3 to 5.5 V
Range
400 to 10,000 ppm
Accuracy
Plus or minus (30 ppm + 3%)
Interface
I2C 0x61 (up to 100 kHz) or Modbus over UART
Extras
Temperature and humidity
Current
About 19 mA average at 2 s interval
01

What the Sensirion SCD30 CO2 sensor is

The Sensirion SCD30 is an NDIR CO2 sensor module that also measures temperature and humidity, giving accurate CO2 readings over I2C, UART (Modbus) or PWM.

The SCD30 uses I2C clock stretching. The ESP32 handles it; on some boards slow the bus to 50 kHz if you see errors.

The temperature reading includes self-heating; set a temperature offset if you compare with another sensor.

02

Sensirion SCD30 CO2 sensor pinout

The pins on the Sensirion SCD30 CO2 sensor and what each one does.

PinFunction
VIN3.3 to 5.5 V
GNDGround
SCL / TXI2C clock
SDA / RXI2C data
RDYData ready
SELLow for I2C, high for Modbus
PinFunction
VIN
3.3 to 5.5 V
GND
Ground
SCL / TX
I2C clock
SDA / RX
I2C data
RDY
Data ready
SEL
Low for I2C, high for Modbus
03

Wiring the Sensirion SCD30 CO2 sensor

Connect the Sensirion SCD30 CO2 sensor like this.

Sensirion SCD30 CO2 sensor pinArduino UnoESP32
VIN5 V3.3 V
GNDGNDGND
SDAA4GPIO 21
SCLA5GPIO 22
VIN
Arduino Uno:
5 V
ESP32:
3.3 V
GND
Arduino Uno:
GND
ESP32:
GND
SDA
Arduino Uno:
A4
ESP32:
GPIO 21
SCL
Arduino Uno:
A5
ESP32:
GPIO 22
04

Example code

A minimal sketch to check the part works.

Read CO2, temperature and humidity (Adafruit SCD30 library) · Arduino C++Verify & upload in Electrolark
#include <Adafruit_SCD30.h>

Adafruit_SCD30 scd;

void setup() {
  Serial.begin(115200);
  if (!scd.begin()) { Serial.println("No SCD30"); while (1); }
}

void loop() {
  if (scd.dataReady() && scd.read()) {
    Serial.print(scd.CO2, 0); Serial.print(" ppm  ");
    Serial.print(scd.temperature, 1); Serial.print(" C  ");
    Serial.print(scd.relative_humidity, 0); Serial.println(" %RH");
  }
  delay(2000);
}
05

Setup and tuning

Wiring

VDD 3.3 to 5.5 V, GND, SDA and SCL; I2C runs at up to 100 kHz with clock stretching.

Library

use the Sensirion or SparkFun SCD30 library.

Interval

set the measurement interval (2 s default); longer intervals save power.

Calibration

use automatic self-calibration only if the room sees fresh air daily; or force-calibrate at 420 ppm outdoors.

ESP8266 note

clock stretching can upset some ESP8266 I2C drivers; use ESP32 or slower I2C.

06

What you need

Shop this list3 of 5 found in our store · ₹2,917

  • Sensirion SCD30 NDIR CO₂, Temperature & Humidity Sensor Module – I²C/UART Output: the part this guide coversSensirion SCD30 NDIR CO₂, Temperature & Humidity Sensor Module – I²C/UART Output₹2,389
  • ESP32-WROOM-32 38-pin development board: for Wi-Fi logging and dashboardsESP32-WROOM-32 38-Pin Development Board₹389
  • Uno R3 development board: the controller used in the wiring tableFind this part
  • 0.96 inch OLED display 128x64: to show readings without a computer0.96" OLED Display 128x64₹139Closest match, check the specs
  • USB 12 V DC fan PWM speed controller: ventilation driven by the readingFind this part
07

Alternatives and when to choose them

  • ✓SCD4x sensor: smaller photoacoustic sensor.
  • ✓MH-Z19 sensor: cheaper UART NDIR.
  • ✓Sensirion SEN5x and SEN66: all-in-one.
08

Common mistakes to avoid

  • !Running I2C too fast.
  • !Auto calibration in a never-ventilated room.
  • !Ignoring self-heating offset.
  • !Blocking the sensor openings.
09

Frequently asked questions

How accurate is the SCD30?

About ±30 ppm plus 3 % of the reading.

Why does my SCD30 not respond on I2C?

It uses clock stretching; lower the I2C speed and use a board that supports it.

Does the SCD30 measure temperature and humidity?

Yes, but self-heating raises temperature; set the temperature offset.

Should I enable auto calibration?

Only if the room is ventilated with fresh air daily.

SCD30 or SCD40, which should I choose?

The SCD40 is smaller and cheaper; the SCD30 is a proven, accurate classic.

Parts for this guide

  • Sensirion SCD30 NDIR CO₂, Temperature & Humidity Sensor Module – I²C/UART Output
    ₹2,389View
  • ESP32-WROOM-32 38-Pin Development Board
    ₹389View
  • Uno R3 Development Board (No Cable)
    ₹359View
  • 0.96" OLED Display 128x64
    ₹139View
  • USB 12V DC Fan PWM Speed Controller Module
    ₹70View
Shop Gas, Air Quality & CO2 Sensors

Keep learning

Component guideIntermediateSCD40 and SCD41 CO2 SensorsThe SCD40 and SCD41 from Sensirion are small CO2 sensors that measure real carbon dioxide with photoacoustic NDIR, plus temperature and humidity.3 min read · SensorsComparisonIntermediateCO2 SensorsCO2 sensors tell you when a room needs fresh air: outdoors is about 420 ppm, under 1000 ppm indoors is good and above 1500 ppm calls for ventilation.3 min read · SensorsComponent guideIntermediateMH-Z19 CO2 SensorThe MH-Z19 from Winsen is an NDIR (infrared) CO2 sensor that measures real carbon dioxide from 400 to 5,000 ppm.3 min read · SensorsConcept explainerIntermediateI2C ExplainedI2C is a two-wire bus that lets one microcontroller talk to many sensors and displays using a data line (SDA) and a clock line (SCL).4 min read · Electronics Fundamentals

Sources

  • Sensirion SCD30 datasheet and interface description

Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

On this page
Short answerWhat the Sensirion SCD30 CO2 sensor isSensirion SCD30 CO2 sensor pinoutWiring the Sensirion SCD30 CO2 sensorExample codeSetup and tuningWhat you needAlternatives and when to choose themCommon mistakesFAQsParts and next steps
Need a hand?Ask Geeko AI which part fits your project, or talk to the Geekobot team.Ask Geeko AIHelp & support

Parts for this guide (Arduino Uno)2 items · ₹2,593

Sensirion SCD30 NDIR CO₂, Temperature & Humidity Sensor Module – I²C/UART Output · Uno R3 CH340G ATmega328p Compatible Development Board

Run itChange the inputs and watch the output

True NDIR CO2, a reading every 2 s. Its temperature reads a little high from self-heating.

Serial monitor115200 baud
847 ppm  26.8 C  50 %RH

A simulation of the sketch above, so you know what to expect. Real readings vary with your parts and wiring.

Ask the Community

Ask a question