Arduino Library
The Electrochemical Gas Sensor Soldered library sets up the board's
LMP91000 front end and ADS1115 converter and returns the gas concentration in
ppm or ppb. Include Electrochemical-Gas-Sensor-SOLDERED.h, create the sensor
with a preset (SENSOR_NO2 is the one for this board's SGX-4NO2 cell), and
call begin().
Not installed yet? Follow Quick Start before using the functionality pages.
Functionality
Each page starts with one verified library example and explains every function the example uses to get that result.
Arduino exampleRead the NO2 concentrationStart the sensor at address 0x30 and print the gas concentration in ppm every 2.5 seconds.Arduino exampleRead the gas concentrationStart the sensor at the library's default address and print the concentration in ppm every 2.5 seconds.Arduino exampleAverage several readingsTake five readings three seconds apart and print their average in ppm.Arduino exampleCalibrate the zero pointAdd your own offset to the measured voltage so the reading sits at zero in clean air.Arduino exampleStart the sensor at a custom addressPass your own address and LMPEN pin when you create the sensor.Arduino exampleUse your own sensor configurationBuild a sensorType with your own sensitivity, ADC range and front-end settings.Arduino exampleRead two sensors on one busCreate two sensors at two addresses and print both readings.