Arduino Library
The Electrochemical Gas Sensor Soldered library reads this board. Include it
with #include "Electrochemical-Gas-Sensor-SOLDERED.h" and create the sensor
with a cell preset and an address. This board's chlorine cell has the preset
SENSOR_CL2, and the board answers at 0x30 as shipped:
ElectrochemicalGasSensor sensor(SENSOR_CL2, 0x30);
Not installed yet? Follow Quick Start before using the functionality pages.
Functionality
Each page shows one of the library's examples as the library has it and explains every function the example uses.
Arduino exampleRead chlorineStart the board at 0x30 and print the concentration in ppm every 2.5 s.Arduino exampleAveraged measurementAverage five readings with one function call.Arduino exampleZero calibrationSet the zero offset in clean air, with the library's debug output.Arduino exampleCustom configurationWrite your own cell preset and LMP91000 settings.Arduino exampleCustom addressCreate the sensor at an address other than the default.Arduino exampleSingle sensorCreate one sensor with only a preset and print ppm every 2.5 s.Arduino exampleTwo sensorsCreate two sensor objects and print both readings every 2.5 s.