MicroPython Library
The Soldered ElectrochemicalGasSensor MicroPython library reads this board
through the ElectrochemicalGasSensor class in ElectrochemicalGasSensor.py,
which uses the helper files ads1115.py and lmp91000.py. Give it an I2C bus,
a sensor preset and an address, and it returns the gas concentration in PPM. Its hydrogen sulphide preset, SENSOR_H2S, is
written for the SGX-4H2S-100 cell and reads about 2.6 times too low with this
board's SGX-4H2S-300 cell, so use a custom SensorConfig with the
460 nA per ppm that the cell's
datasheet
gives, instead, as
Read the gas concentration
explains.
Not installed yet? Follow Quick Start before using the functionality pages.
Functionality
Each page starts with one verified module example and explains every function the example uses to get that result.