Arduino Library
The Electrochemical Gas Sensor Soldered library has presets for eight gas types. Include Electrochemical-Gas-Sensor-SOLDERED.h, create an ElectrochemicalGasSensor with a preset and an address, call begin(), and read ppm or ppb. SENSOR_NH3 is the preset for this board's ammonia cell.
The board answers on address 0x30 as shipped, and its ADDRESS switch moves it up to 0x37. For an address from 0x30 to 0x37, the library talks to the board through its ATtiny404 bridge, over Qwiic. With any other address it talks to the board's ADS1115 directly, on the header's SDA2/SCL2 pins, which the Qwiic connectors do not reach: the examples that do this say on their pages how to wire the header instead.
Not installed yet? Follow Quick Start before using the functionality pages.
Functionality
Each page starts with one verified library example and explains every function the example uses to get that result.