Soldered ElectrochemicalGasSensor MicroPython Library
![]() |
|---|
| Electrochemical Gas Sensor Breakout↗ (opens in a new tab) |
This library drives Soldered's high-precision electrochemical gas sensor breakout, built around TI's LMP91000 programmable analog front-end (potentiostat) and an ADS1115 16-bit ADC. The breakout accepts swappable SGX electrochemical gas sensor cells and communicates over I2C/Qwiic, with both analog and digital (I2C) output. Two board variants exist: a direct-wired board and an ATtiny-based bridge board (I2C address 0x30-0x37) for daisy-chaining; the driver auto-detects which one is present. Confirmed sensor cell variants:
| Gas | Sensor | SKU |
|---|---|---|
| CO | SGX-4CO | 333328 |
| H₂S | SGX-4H2S-100 | 333331 |
| NO₂ | SGX-4NO2 | 333326 |
| NO | SGX-4NO-250 | 333327 |
How to install
After installing the mpremote package↗ (opens in a new tab), install the library on your board using the following command:
mpremote mip install github:SolderedElectronics/Soldered-ElectrochemicalGasSensor-MicroPython-Library
Or, if you're running a Windows OS:
python -m mpremote mip install github:SolderedElectronics/Soldered-ElectrochemicalGasSensor-MicroPython-Library
Repository Contents
- ElectrochemicalGasSensor.py - MicroPython driver class (direct-wired + ATtiny bridge board)
- lmp91000.py, ads1115.py - internal helper drivers (analog frontend, ADC) used by ElectrochemicalGasSensor.py
- package.json - mip install manifest
- /Examples - single sensor, two sensors, bridge board, averaged measurement, calibration, and custom-config examples
Hardware design
You can find hardware design for this board in the electrochemical gas sensor hardware repository.
Documentation
Access library documentation here↗ (opens in a new tab).
About Soldered

At Soldered, we design and manufacture a wide selection of electronic products to help you turn your ideas into acts and bring you one step closer to your final project. Our products are intented for makers and crafted in-house by our experienced team in Osijek, Croatia. We believe that sharing is a crucial element for improvement and innovation, and we work hard to stay connected with all our makers regardless of their skill or experience level. Therefore, all our products are open-source. Finally, we always have your back. If you face any problem concerning either your shopping experience or your electronics project, our team will help you deal with it, offering efficient customer service and cost-free technical support anytime. Some of those might be useful for you:
- Web Store↗ (opens in a new tab)
- Tutorials & Projects↗ (opens in a new tab)
- Documentation↗ (opens in a new tab)
Open-source license
Soldered invests vast amounts of time into hardware & software for these products, which are all open-source. Please support future development by buying one of our products.
Check license details in the LICENSE file. Long story short, use these open-source files for any purpose you want to, as long as you apply the same open-source licence to it and disclose the original source. No warranty - all designs in this repository are distributed in the hope that they will be useful, but without any warranty. They are provided "AS IS", therefore without warranty of any kind, either expressed or implied. The entire quality and performance of what you do with the contents of this repository are your responsibility. In no event, Soldered (TAVU) will be liable for your damages, losses, including any general, special, incidental or consequential damage arising out of the use or inability to use the contents of this repository.
Have fun!
And thank you from your fellow makers at Soldered Electronics.
