Grove - CO2 Sensor
The Grove - CO2 Sensor module is infrared CO2 sensor high sensitivity and high resolution. Infrared CO2 sensor MH-Z16 Is a general-purpose, small sensors, the use of non-dispersive infrared (NDIR) Present in the principle of the air CO2 Detect, with good selectivity, oxygen- dependent, long life, built-in temperature sensor, temperature compensation, with UART output, easy to use. It can be widely used in HVAC and indoor air quality monitoring, industrial process monitoring and security, agriculture and livestock production process monitoring.
CautionNote that the sensor value only reflects the approximated trend of gas concentration in a permissible error range. It DOES NOT represent the exact gas concentration. The detection of certain components in the air usually requires a more precise and costly instrument, which cannot be done with a single gas sensor. If your project is aimed at obtaining the gas concentration at a very precise level, then we do not recommend this gas sensor.
We've released the [Seeed Gas Sensor Selection Guide](https://wiki.seeedstudio.com/Sensor_gas/), it will help you choose the gas sensor that best suits your needs.
- Measuring the range of 0-2000 parts per million (PPM)
- Resolution of 1 PPM 0-2000 parts per million (PPM)
- Accuracy of 200 PPM
- A Warm - up time 3 minutes
- Response Time < 90s
- Operating temperature 0 to 50℃
- Operating Humidity 0% ~ 90% RH
- Storage temperature - 20-60℃
- Operating Voltage4.5 V to 6 V DC
- The Current maximum Current of less than 100 ma, the average Current of less than 50 ma
- Output mode UART
More details about Grove modules please refer to [Grove System](https://wiki.seeedstudio.com/Grove_System/)
The platforms mentioned above as supported is/are an indication of the module's software or theoritical compatibility. We only provide software library or code examples for Arduino platform in most cases. It is not possible to provide software library / demo code for all possible MCU platforms. Hence, users have to write their own software library.
Connect the module with Grove Shield using like following picture and use the program below to gain the voltage.
Please note that the best preheat time of the sensor is about 180s. For the detailed information about the sensor, please refer to the datasheet.
This test code is write for Arduino AVR Series(UNO, Leonardo, Mega)
If you want to use with LinkIt ONE, please connect the module to D0/1 and modify:
// #include <SoftwareSerial.h>
// SoftwareSerial s_serial(2, 3); // TX, RX
#define sensor Serial1
SoftwareSerial s_serial(2, 3); // TX, RX
#define sensor s_serial
const unsigned char cmd_get_sensor =
0xff, 0x01, 0x86, 0x00, 0x00,
0x00, 0x00, 0x00, 0x79
unsigned char dataRevice;
Serial.println("get a 'g', begin to read from sensor!");
Serial.print(" CO2: ");
int i = 0;
//transmit command data
for(i=0; i<sizeof(cmd_get_sensor); i++)
//begin reveiceing data
for(int i=0;i<9; i++)
data[i] = sensor.read();
for(int j=0; j<9; j++)
if((i != 9) || (1 + (0xFF ^ (byte)(data + data + data + data + data + data + data))) != data)
CO2PPM = (int)data * 256 + (int)data;
temperature = (int)data - 40;
If you need to calibrate the sensor, please upload below code to your Arduino.
// Grove - Co2 Sensor calibration
SoftwareSerial sensor(A5, A4); // TX, RX
const unsigned char cmd_calibrate =
0xff, 0x87, 0x87, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf2
Serial.println("begin to calibrate");
for(int i=0; i<sizeof(cmd_calibrate); i++)
// nothing to do
Please preheat the sensor for at least 5 minutes before calibrating and make sure the sensor in fresh air.
- 350~450ppm: General outdoor environment
- 350~1000ppm：The air is fresh and breathing smooth
- 1000~2000ppm：The air was stagnant and feel asleep
- 5000ppm：Permissible exposure limit for an 8h work day
LoRa IoTea: An automatic information collection system applied to tea plantation. It is part of intelligent agricultural information collection.
Please submit any technical issue into our forum.
Upgradable to Industrial Sensors
With the SenseCAP S2110 controller and S2100 data logger, you can easily turn the Grove into a LoRaWAN® sensor. Seeed not only helps you with prototyping but also offers you the possibility to expand your project with the SenseCAP series of robust industrial sensors.
The IP66 housing, Bluetooth configuration, compatibility with the global LoRaWAN® network, built-in 19 Ah battery, and powerful support from APP make the SenseCAP S210x the best choice for industrial applications. The series includes sensors for soil moisture, air temperature and humidity, light intensity, CO2, EC, and an 8-in-1 weather station. Try the latest SenseCAP S210x for your next successful industrial project.