Skip to main content

MicroPython Library

The ElectrochemicalGasSensor module reads the board, with lmp91000.py and ads1115.py as helper files. Create an ElectrochemicalGasSensor with a preset and a machine.I2C bus, call begin(), and read the concentration with getPPM() or getPPB(). The module's preset for this board's SGX-4CO cell is SENSOR_CO.

Not installed yet? Follow Quick Start before using the functionality pages.

Functionality​

Each page starts with one module example and explains every function the example uses to get that result. The examples use SENSOR_O3, the module's preset for the ozone cell (electrochemical-customConfig.py builds its own configuration with the same values); each page says where to put the SENSOR_CO preset or values for this board's cell.