Datasheet

4
3. Demonstration
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.
#include <SoftwareSerial.h>
#define DEBUG 0
const int pinRx = 8;
const int pinTx = 7;
SoftwareSerial sensor(pinTx,pinRx);
const unsigned char cmd_get_sensor[] =
{
0xff, 0x01, 0x86, 0x00, 0x00,
0x00, 0x00, 0x00, 0x79
};
unsigned char dataRevice[9];
int temperature;
int CO2PPM;
void setup()