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. ›DFRobot Gravity Calibrated Electrochemical Gas Sensors

Component guide · Intermediate · 4 min read

DFRobot Gravity Calibrated Electrochemical Gas Sensors

CO, H2S, NH3, O2, O3, Cl2, H2, HCl, HF, PH3, Alcohol)

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 DFRobot Gravity calibrated gas sensors isDFRobot Gravity calibrated gas sensors pinoutWiring the DFRobot Gravity calibrated gas sensorsExample codeSetup and tuningWhat you needAlternatives and when to choose themCommon mistakesFAQsParts and next steps
Short answer

DFRobot Gravity calibrated gas sensors put a factory-calibrated electrochemical cell on a board that reports ppm (or percent volume for oxygen) over I2C or UART. All the multi-gas boards share one Arduino library, so CO, H2S, NH3, ozone, chlorine and others read the same way, with temperature compensation built in. The I2C oxygen and ozone boards use their own libraries.

Key specs at a glance

Supply
3.3 to 5.5 V
Interface
I2C (default 0x74) or UART 9600, set by a switch
Output
ppm or percent volume, with temperature
Accuracy
About plus or minus 2 to 3% full scale
Response
T90 under 30 to 60 s typical
Life
About 2 years for most cells

Models in this guide

These are alternatives. Pick the one that fits your project; you only need one.

  • Option 1DFRobot Gravity CO Sensor (Calibrated) – I2C & UART₹7,939
  • Option 2DFRobot Gravity H2S Gas Sensor Calibrated – I2C/UART/Analog Output₹8,819
  • Option 3DFRobot Gravity NH3 Sensor Calibrated I2C UART – Ammonia Gas Detection Module₹17,849
  • Option 4DFRobot Gravity O2 Gas Sensor Calibrated I2C UART – Electrochemical Oxygen Detection Module₹10,499
  • Option 5DFRobot Gravity O3 Sensor (Calibrated) – I2C & UART Output₹14,889
  • Option 6DFRobot Gravity CL2 Gas Sensor Calibrated – I2C & UART Output₹13,609
01

What the DFRobot Gravity calibrated gas sensors is

DFRobot Gravity electrochemical gas sensors are factory-calibrated modules that report a gas such as CO, H2S, NH3 or O2 in ppm over I2C or UART.

Four I2C addresses (0x74 to 0x77) are set with DIP switches, so up to four boards share a bus. Switch to UART if you need longer cables.

Electrochemical cells are much more selective than metal-oxide sensors, but they wear out and must be kept away from high concentrations and solvents.

02

DFRobot Gravity calibrated gas sensors pinout

The pins on the DFRobot Gravity calibrated gas sensors and what each one does.

PinFunction
VCC3.3 to 5 V
GNDGround
SDA / TXI2C data or UART TX
SCL / RXI2C clock or UART RX
PinFunction
VCC
3.3 to 5 V
GND
Ground
SDA / TX
I2C data or UART TX
SCL / RX
I2C clock or UART RX
03

Wiring the DFRobot Gravity calibrated gas sensors

Connect the DFRobot Gravity calibrated gas sensors like this.

DFRobot Gravity calibrated gas sensors pinArduino UnoESP32
VCC5 V3.3 V
GNDGNDGND
SDAA4GPIO 21
SCLA5GPIO 22
VCC
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

The I2C oxygen (0 to 25%) and I2C ozone boards use the DFRobot_OxygenSensor and DFRobot_OzoneSensor libraries.

Read any multi-gas board (DFRobot_MultiGasSensor library) · Arduino C++Verify & upload in Electrolark
#include <DFRobot_MultiGasSensor.h>

DFRobot_GAS_I2C gas(&Wire, 0x74);

void setup() {
  Serial.begin(115200);
  while (!gas.begin()) { Serial.println("No sensor"); delay(1000); }
  gas.changeAcquireMode(gas.PASSIVITY);
  gas.setTempCompensation(gas.ON);
}

void loop() {
  Serial.print(gas.queryGasType()); Serial.print(": ");
  Serial.print(gas.readGasConcentrationPPM());
  Serial.print(" ppm  "); Serial.print(gas.readTempC()); Serial.println(" C");
  delay(1000);
}
05

Setup and tuning

Pick I2C or UART

set the switch and use the matching library mode.

Address

the default I2C address is 0x74; change it with the DIP switch to use several sensors.

Warm-up

allow a few minutes after power-up before reading.

Placement

mount where the gas collects: low for heavy gases, high for light ones.

Lifetime

electrochemical cells last about two years; plan to replace them.

06

What you need

Shop this list18 of 19 found in our store · ₹1,77,006

  • DFRobot Gravity CO Sensor (Calibrated) – I2C & UART: the part this guide coversDFRobot Gravity CO Sensor (Calibrated) – I2C & UART₹7,939
  • DFRobot Gravity H2S Gas Sensor Calibrated – I2C/UART/Analog Output: another version this guide coversDFRobot Gravity H2S Gas Sensor Calibrated – I2C/UART/Analog Output₹8,819
  • DFRobot Gravity NH3 Sensor Calibrated I2C UART – Ammonia Gas Detection Module: another version this guide coversDFRobot Gravity NH3 Sensor Calibrated I2C UART – Ammonia Gas Detection Module₹17,849
  • DFRobot Gravity O2 Gas Sensor Calibrated I2C UART – Electrochemical Oxygen Detection Module: another version this guide coversDFRobot Gravity O2 Gas Sensor Calibrated I2C UART – Electrochemical Oxygen Detection Module₹10,499
  • DFRobot Gravity O3 Sensor (Calibrated) – I2C & UART Output: another version this guide coversDFRobot Gravity O3 Sensor (Calibrated) – I2C & UART Output₹14,889
  • DFRobot Gravity CL2 Gas Sensor Calibrated – I2C & UART Output: another version this guide coversDFRobot Gravity CL2 Gas Sensor Calibrated – I2C & UART Output₹13,609
  • DFRobot Gravity H2 Gas Sensor Calibrated – I2C, UART & Analog Output: another version this guide coversDFRobot Gravity H2 Gas Sensor Calibrated – I2C, UART & Analog Output₹16,804
  • DFRobot Gravity HCL Sensor (Calibrated) – I2C & UART: another version this guide coversDFRobot Gravity HCL Sensor (Calibrated) – I2C & UART₹16,396
  • DFRobot Gravity HF Sensor Calibrated – Hydrogen Fluoride Gas Sensor Module w/ I2C, UART & Analog Output: another version this guide coversDFRobot Gravity HF Sensor Calibrated – Hydrogen Fluoride Gas Sensor Module w/ I2C, UART & Analog Output₹21,899
  • DFRobot Gravity Phosphine PH3 Gas Sensor (Calibrated) – I2C & UART Output: another version this guide coversDFRobot Gravity Phosphine PH3 Gas Sensor (Calibrated) – I2C & UART Output₹20,635
  • DFRobot Gravity Alcohol Sensor (0–5ppm) – I2C/UART Output: another version this guide coversDFRobot Gravity Alcohol Sensor (0–5ppm) – I2C/UART Output₹3,189
  • DFRobot Gravity Electrochemical O2 Sensor 0–100% I2C: another version this guide coversDFRobot Gravity Electrochemical O2 Sensor 0–100% I2C₹11,252
  • DFRobot Gravity I2C Oxygen Sensor Module – 0-25%Vol, 3.3-5.5V: another version this guide coversDFRobot Gravity I2C Oxygen Sensor Module – 0-25%Vol, 3.3-5.5V₹6,299
  • DFRobot Gravity I2C Ozone Sensor (0-10ppm) – Module w/ Gravity-4Pin Cable: another version this guide coversDFRobot Gravity I2C Ozone Sensor (0-10ppm) – Module w/ Gravity-4Pin Cable₹6,299
  • Uno R3 development board: the controller used in the wiring tableFind this part
  • ESP32-WROOM-32 38-pin development board: for Wi-Fi logging and dashboardsESP32-WROOM-32 38-Pin Development Board₹389
  • 0.96 inch OLED display 128x64: to show readings without a computer0.96" OLED Display 128x64₹139Closest match, check the specs
  • Buzzer module 3.3-5 V: for an audible alarmBuzzer Module 3.3–5V₹27
  • 5 V relay module with optocoupler: to switch a fan or alarm5V Relay Module with Optocoupler₹74
07

Alternatives and when to choose them

  • ✓Electrochemical gas sensors: how the cells work.
  • ✓Winsen ZE03 modules: UART modules with the same idea.
  • ✓DFRobot Fermion MEMS: cheap trend sensors.
08

Common mistakes to avoid

  • !Putting two sensors on the same I2C address.
  • !Mounting a sensor for a heavy gas near the ceiling.
  • !Reading before warm-up.
  • !Using it as a certified safety alarm.
09

Frequently asked questions

Are these sensors calibrated?

Yes. They are factory-calibrated and report ppm or percent volume directly.

Can I use several on one Arduino?

Yes. Give each a different I2C address with the DIP switches.

How long does an electrochemical sensor last?

Usually about two years, depending on gas exposure.

Can it be used as a safety alarm?

It is good for monitoring and projects; life-safety alarms must be certified.

Why is the reading not zero in clean air?

Small offsets are normal; let it warm up and check the zero after some minutes.

Parts for this guide

  • DFRobot Gravity CO Sensor (Calibrated) – I2C & UART
    ₹7,939View
  • DFRobot Gravity H2S Gas Sensor Calibrated – I2C/UART/Analog Output
    ₹8,819View
  • DFRobot Gravity NH3 Sensor Calibrated I2C UART – Ammonia Gas Detection Module
    ₹17,849View
  • DFRobot Gravity O2 Gas Sensor Calibrated I2C UART – Electrochemical Oxygen Detection Module
    ₹10,499View
  • DFRobot Gravity O3 Sensor (Calibrated) – I2C & UART Output
    ₹14,889View
  • DFRobot Gravity CL2 Gas Sensor Calibrated – I2C & UART Output
    ₹13,609View
  • DFRobot Gravity H2 Gas Sensor Calibrated – I2C, UART & Analog Output
    ₹16,804View
  • DFRobot Gravity HCL Sensor (Calibrated) – I2C & UART
    ₹16,396View
  • DFRobot Gravity HF Sensor Calibrated – Hydrogen Fluoride Gas Sensor Module w/ I2C, UART & Analog Output
    ₹21,899View
  • DFRobot Gravity Phosphine PH3 Gas Sensor (Calibrated) – I2C & UART Output
    ₹20,635View
  • DFRobot Gravity Alcohol Sensor (0–5ppm) – I2C/UART Output
    ₹3,189View
  • DFRobot Gravity Electrochemical O2 Sensor 0–100% I2C
    ₹11,252View
  • DFRobot Gravity I2C Oxygen Sensor Module – 0-25%Vol, 3.3-5.5V
    ₹6,299View
  • DFRobot Gravity I2C Ozone Sensor (0-10ppm) – Module w/ Gravity-4Pin Cable
    ₹6,299View
  • Uno R3 Development Board (No Cable)
    ₹359View
  • ESP32-WROOM-32 38-Pin Development Board
    ₹389View
  • 0.96" OLED Display 128x64
    ₹139View
  • Buzzer Module 3.3–5V
    ₹27View
  • 5V Relay Module with Optocoupler
    ₹74View
Shop Gas, Air Quality & CO2 Sensors

Keep learning

Component guideAdvancedElectrochemical Gas SensorsElectrochemical sensors measure one specific toxic gas, such as carbon monoxide, ammonia, hydrogen sulphide or oxygen, with much better selectivity than MQ sensors.3 min read · SensorsComponent guideIntermediateWinsen ZE03, ZE07, ZE12A, ZE15, ZE16B, ZE21Winsen ZE-series modules combine an electrochemical cell with a microcontroller that outputs calibrated ppm over UART and as an analog voltage.5 min read · SensorsComponent guideIntermediateOxygen SensorsOxygen sensor guide: galvanic AO-02 to AO-09, ME2-O2 and MED-O2 cells, ultrasonic AOF1010, US1000 and Gasboard modules, fluorescent AOX4000, wiring and code.4 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

  • DFRobot Gravity gas sensor wiki
  • DFRobot_MultiGasSensor library

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 DFRobot Gravity calibrated gas sensors isDFRobot Gravity calibrated gas sensors pinoutWiring the DFRobot Gravity calibrated gas sensorsExample 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 guide8 items · ₹1,06,804

DFRobot Gravity CO Sensor (Calibrated) – I2C & UART · DFRobot Gravity H2S Gas Sensor Calibrated – I2C/UART/Analog Output · DFRobot Gravity NH3 Sensor Calibrated I2C UART – Ammonia Gas Detection Module · DFRobot Gravity O2 Gas Sensor Calibrated I2C UART – Electrochemical Oxygen Detection Module · DFRobot Gravity O3 Sensor (Calibrated) – I2C & UART Output · DFRobot Gravity CL2 Gas Sensor Calibrated – I2C & UART Output · DFRobot Gravity H2 Gas Sensor Calibrated – I2C, UART & Analog Output · DFRobot Gravity HCL Sensor (Calibrated) – I2C & UART

Run itChange the inputs and watch the output

Each module is made for one gas and reports its own type. Temperature compensation is on.

Serial monitor115200 baud
CO: 3.00 ppm  27.00 C

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