Skip to main content

SparkFun Gas Sensor - GM-XX2B (Qwiic) Hookup Guide Banner

Introduction

The SparkFun Gas Sensors - GM-XX2B (Qwiic) are a selection MEMS gas sensors useful for detecting concentrations of a wide variety of gases in indoor environments. The GM-XX2B are metal-oxide semiconductor sensors that react to their specified gas with an analog output that rises (or in the case of the GM-102B falls) with gas concentration. These gas sensor breakouts feed that analog signal into an onboard 10-bit I2C ADC to read gas levels over a Qwiic connection. The gas sensor breakouts covered in this guide are:

In order to follow along with this tutorial, you'll need at least one of the GM-XX2B Gas Sensors along with the following items:

Topics Covered​

This document contains three main sections: Quick Start Guide, Hardware and Software.

The Quick Start Guide goes over assembling the Gas Sensor in a Qwiic circuit with a compatible Arduino development board and jumps right into installing and uploading an example from the SparkFun GM-XX2B Arduino Library to get data from the sensors in just a few minutes.

The Hardware pages include a hardware overview that provides a detailed overview of the . The Hardware Assembly page goes over the steps required to assemble and use the board to detect gas concentrations with a compatible Arduino development board.

The Software pages give instructions on how to install the SparkFun GM-XX2B Arduino Library and use some of the examples included in it.

Resources and Documentation​

The Resources page has the board design files (KiCad files & schematic), relevant documentation (datasheets, white papers, etc.) and other helpful links. The Support page has a troubleshooting section that includes any helpful tips specific to this board as well as information on how to receive technical support from SparkFun.