Component guide · Intermediate · 4 min read
Oxygen Sensors

Galvanic Cells (Asair AO-02 to AO-09, Winsen ME2-O2, MED-O2), Ultrasonic and Fluorescent O2 Modules
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
Oxygen sensors come in three types. Galvanic cells (Asair AO series, Winsen ME2-O2, MED-O2) make a small voltage, about 9 to 13 mV in normal air, and need an amplifier or 16-bit ADC. Ultrasonic modules (AOF1010, US1000, Gasboard-7500HA) measure 0 to 100 percent O2 in concentrators over UART. Fluorescent sensors (AOX4000) last much longer and need no consumable cell.
Key specs at a glance
- Range
- 0 to 25% (ambient) or 0 to 100% (medical, concentrators)
- Galvanic output
- About 9 to 13 mV in air (20.9% O2)
- Ultrasonic
- UART, also gives flow and temperature
- Accuracy
- About plus or minus 1 to 2% O2 typical
- Galvanic life
- About 1 to 2 years (lead-free AOX3000 longer)
- Use
- Confined spaces, incubators, oxygen concentrators
Models in this guide
These are alternatives. Pick the one that fits your project; you only need one.
Option 1Asair AO-02 Oxygen Sensor – Electrochemical Partial Pressure Sensor₹1,839
Option 2Asair AO-03 Oxygen Sensor Module – 1-25% Vol. Linear Output₹1,219
Option 3Asair AO-07 Oxygen Sensor Module – 0-100% Vol. O2, 9-13mV Output₹2,599
Option 4Asair AO-09 Oxygen Sensor Module – Medical Grade, 0-100% O2₹2,519
Option 5Asair AOX3000 Lead-free Oxygen Sensor – Industrial Fuel Cell Design₹2,219
Option 6Winsen ME2-O2-Ф20 Oxygen Gas Sensor Module – 0-25%Vol Electrochemical₹3,389
What the Oxygen (O2) sensors is
Oxygen (O2) sensors such as the DFRobot Gravity O2, Winsen ME2-O2 and SGX electrochemical cells measure oxygen level in air, for incubators, safety monitors and grow rooms.
Galvanic cells need no power and drift slowly: calibrate in fresh air as 20.9 percent and the output is proportional from there.
Ultrasonic sensors need a flow of oxygen-air mix through them, so they suit concentrators rather than room monitoring.
Oxygen (O2) sensors pinout
The pins on the Oxygen (O2) sensors and what each one does.
| Pin | Function |
|---|---|
| Galvanic + | Amplifier or ADC + |
| Galvanic - | Ground |
| UART modules | VCC, GND, TX, RX |
- Galvanic +
- Amplifier or ADC +
- Galvanic -
- Ground
- UART modules
- VCC, GND, TX, RX
Wiring the Oxygen (O2) sensors
Use the ADS1115 at gain 16 (plus or minus 0.256 V range) for the best resolution on a 10 mV signal.
| Oxygen (O2) sensors pin | Arduino Uno | ESP32 |
|---|---|---|
| Cell + | ADS1115 A0 | ADS1115 A0 |
| Cell - | ADS1115 A1 (differential) or GND | Same |
| ADS1115 SDA / SCL | A4 / A5 | GPIO 21 / 22 |
| ADS1115 VDD | 5 V | 3.3 V |
- Cell +
- Arduino Uno:
- ADS1115 A0
- ESP32:
- ADS1115 A0
- Cell -
- Arduino Uno:
- ADS1115 A1 (differential) or GND
- ESP32:
- Same
- ADS1115 SDA / SCL
- Arduino Uno:
- A4 / A5
- ESP32:
- GPIO 21 / 22
- ADS1115 VDD
- Arduino Uno:
- 5 V
- ESP32:
- 3.3 V
Example code
A minimal sketch to check the part works.
#include <Adafruit_ADS1X15.h>
Adafruit_ADS1115 ads;
float airMv;
float mv() { return ads.computeVolts(ads.readADC_Differential_0_1()) * 1000.0; }
void setup() {
Serial.begin(115200);
ads.begin(); ads.setGain(GAIN_SIXTEEN);
delay(5000);
airMv = mv(); // calibrate in fresh air
}
void loop() {
float o2 = mv() / airMv * 20.9;
Serial.print(o2, 1); Serial.println(" % O2");
delay(1000);
}Setup and tuning
most are electrochemical cells with a 1 to 2 year life; galvanic cells need no power.
Gravity boards use I2C or analog at 3.3 to 5 V; bare cells give microamps that need an amplifier.
calibrate in fresh air at 20.9 % O2 after installation.
allow a few minutes after power-up before reading.
keep the cell away from direct airflow, solvents and condensation.
What you need
Shop this list15 of 16 found in our store · ₹32,813
Asair AO-02 Oxygen Sensor – Electrochemical Partial Pressure Sensor: the part this guide coversAsair AO-02 Oxygen Sensor – Electrochemical Partial Pressure Sensor₹1,839
Asair AO-03 Oxygen Sensor Module – 1-25% Vol. Linear Output: another version this guide coversAsair AO-03 Oxygen Sensor Module – 1-25% Vol. Linear Output₹1,219
Asair AO-07 Oxygen Sensor Module – 0-100% Vol. O2, 9-13mV Output: another version this guide coversAsair AO-07 Oxygen Sensor Module – 0-100% Vol. O2, 9-13mV Output₹2,599
Asair AO-09 Oxygen Sensor Module – Medical Grade, 0-100% O2: another version this guide coversAsair AO-09 Oxygen Sensor Module – Medical Grade, 0-100% O2₹2,519
Asair AOX3000 Lead-free Oxygen Sensor – Industrial Fuel Cell Design: another version this guide coversAsair AOX3000 Lead-free Oxygen Sensor – Industrial Fuel Cell Design₹2,219
Winsen ME2-O2-Ф20 Oxygen Gas Sensor Module – 0-25%Vol Electrochemical: another version this guide coversWinsen ME2-O2-Ф20 Oxygen Gas Sensor Module – 0-25%Vol Electrochemical₹3,389
Winsen MED-O2-LA Oxygen Gas Sensor – Fuel Cell Electrochemical Sensor: another version this guide coversWinsen MED-O2-LA Oxygen Gas Sensor – Fuel Cell Electrochemical Sensor₹2,769
Asair AOF1010 Ultrasonic Oxygen Sensor – UART/9600bps: another version this guide coversAsair AOF1010 Ultrasonic Oxygen Sensor – UART/9600bps₹929
Winsen US1000 Ultrasonic Oxygen Sensor – UART Output: another version this guide coversWinsen US1000 Ultrasonic Oxygen Sensor – UART Output₹1,919
Cubic Sensor Gasboard-7500HA Ultrasonic Oxygen Sensor Module (0-100% O₂, 0-10L/min) – UART TTL & Analog Output: another version this guide coversCubic Sensor Gasboard-7500HA Ultrasonic Oxygen Sensor Module (0-100% O₂, 0-10L/min) – UART TTL & Analog Output₹9,919
Asair AOX4000 Fluorescent Oxygen Sensor Module – Digital Output, Temperature Compensated: another version this guide coversAsair AOX4000 Fluorescent Oxygen Sensor Module – Digital Output, Temperature Compensated₹2,739
ADS1115 16-bit 4-channel ADC module: to read small sensor voltages accuratelyADS1115 16-Bit 4-Channel ADC Module₹199
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
Buzzer module 3.3-5 V: for an audible alarmBuzzer Module 3.3–5V₹27
0.96 inch OLED display 128x64: to show readings without a computer0.96" OLED Display 128x64₹139Closest match, check the specs
Alternatives and when to choose them
- DFRobot Gravity O2 boards: ready I2C output.
- Electrochemical gas sensors: related cells.
- Winsen ME3 and ME4: toxic gas cells.
Common mistakes to avoid
- Calibrating in a closed room with low oxygen.
- Using an old cell past its life.
- Exposing the cell to solvents.
- Using it as a medical oxygen monitor.
Frequently asked questions
What oxygen level is normal in air?
Fresh air contains about 20.9 % oxygen; below 19.5 % is considered unsafe.
How long does an oxygen sensor last?
Electrochemical cells usually last 1 to 2 years, then the reading drops and the cell must be replaced.
How do I calibrate the O2 sensor?
Place it in fresh outdoor air and set the reading to 20.9 %.
Can I read it with Arduino?
Yes. The DFRobot Gravity O2 sensor uses I2C with a ready library.
Can it be used for medical oxygen?
Not as a medical device; certified analysers are required for patients.
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.

