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
On this page
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
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.
DFRobot Gravity calibrated gas sensors pinout
The pins on the DFRobot Gravity calibrated gas sensors and what each one does.
| Pin | Function |
|---|---|
| VCC | 3.3 to 5 V |
| GND | Ground |
| SDA / TX | I2C data or UART TX |
| SCL / RX | I2C clock or UART RX |
- VCC
- 3.3 to 5 V
- GND
- Ground
- SDA / TX
- I2C data or UART TX
- SCL / RX
- I2C clock or UART RX
Wiring the DFRobot Gravity calibrated gas sensors
Connect the DFRobot Gravity calibrated gas sensors like this.
| DFRobot Gravity calibrated gas sensors pin | Arduino Uno | ESP32 |
|---|---|---|
| VCC | 5 V | 3.3 V |
| GND | GND | GND |
| SDA | A4 | GPIO 21 |
| SCL | A5 | GPIO 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
Example code
The I2C oxygen (0 to 25%) and I2C ozone boards use the DFRobot_OxygenSensor and DFRobot_OzoneSensor libraries.
#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);
}Setup and tuning
set the switch and use the matching library mode.
the default I2C address is 0x74; change it with the DIP switch to use several sensors.
allow a few minutes after power-up before reading.
mount where the gas collects: low for heavy gases, high for light ones.
electrochemical cells last about two years; plan to replace them.
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
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.
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.
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
Keep learning
Sources
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

