Skip to main content

MicroPython Library

The Soldered Electrochemical Gas Sensor MicroPython library reads this board through its ATtiny404 and returns the gas concentration in ppm. It is three files: ElectrochemicalGasSensor.py, the class you use, and the helpers ads1115.py and lmp91000.py. Create the sensor with a preset (SENSOR_NO2 is the one for this board's SGX-4NO2 cell), and an I2C object, then call begin().

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.