# Adafruit SGP40 Air Quality Sensor

## Overview

![](https://cdn-learn.adafruit.com/assets/assets/000/097/504/medium800/sensors_SGP40_top.jpg?1607381315)

\*sniff\* \*sniff\* ... do you smell that? No need to stick your nose into a carton of milk anymore, you can build a digital nose with the [SGP40 Multi-Pixel Gas Sensor,](https://www.adafruit.com/product/4829) a fully integrated MOX gas sensor. This is a very fine air quality sensor from the sensor experts at Sensirion, with I2C interfacing so you don't have to manage the heater and analog reading of a MOX sensor. It combines multiple metal-oxide sensing and heating elements on one chip to provide more detailed air quality signals.

![](https://cdn-learn.adafruit.com/assets/assets/000/097/505/medium800/sensors_SGP40_back.jpg?1607381335)

The SGP40 has a 'standard' hot-plate MOX sensor, as well as a small microcontroller that controls power to the plate, reads the analog voltage and provides an I2C interface to read from. Unlike the CCS811, this sensor does not require I2C clock stretching. [We currently have an Arduino library with examples of reading the raw value and also running the Sensirion algorithm to calculate VOC index](https://github.com/adafruit/Adafruit_SGP40) as well as a [CircuitPython / Python library](https://github.com/adafruit/Adafruit_CircuitPython_SGP40).

This is a gas sensor that can detect a wide range of Volatile Organic Compounds (VOCs) and H2 and is intended for indoor air quality monitoring. **The SGP40 is the next generation after the SGP30, but does not give TVOC/eCO2 values out like the SGP30.** Instead, [raw signal from the sensor is processed using their software algorithm to give an overall 'air quality' value form 0 to 500](https://github.com/Sensirion/embedded-sgp/tree/master/sgp40_voc_index).

![](https://cdn-learn.adafruit.com/assets/assets/000/097/506/medium800/sensors_SGP40_top_angle.jpg?1607381347)

 **Please note, this sensor, like all VOC/gas sensors, has variability, and to get precise measurements you will want to calibrate it against known sources!** &nbsp;That said, for general environmental sensors, it will give you a good idea of trends and comparison.

Another nice element to this sensor is the ability to set humidity compensation for better accuracy. [An external humidity sensor is required and then the RH% is written over I2C to the sensor](https://github.com/adafruit/Adafruit_SGP40/blob/master/examples/sgp40_voc/sgp40_voc.ino), so it can better calibrate the MOX sensor reading and reduce humidity/temperature-based variations..

![](https://cdn-learn.adafruit.com/assets/assets/000/097/507/medium800/sensors_SGP40_STEMMA_side.jpg?1607381355)

Nice sensor right? So we made it easy for you to get right into your next project. The surface-mount sensor is soldered onto a custom made PCB in the[&nbsp; **STEMMA QT** &nbsp;form factor](https://www.adafruit.com/?q=stemma%20qt%20sensor "STEMMA QT form factor"), making them easy to interface with. The&nbsp;[STEMMA QT connectors](https://learn.adafruit.com/introducing-adafruit-stemma-qt/what-is-stemma-qt)&nbsp;on either side are compatible with the&nbsp;[SparkFun Qwiic](https://www.sparkfun.com/qwiic)&nbsp;I2C connectors. This allows you to make solderless connections between your development board and the SGP40 or to chain it with a wide range of other sensors and accessories using a&nbsp;[**compatible cable**](https://www.adafruit.com/?q=stemma%20qt%20cable).&nbsp;[QT Cable is not included, but we have a variety in the shop](https://www.adafruit.com/?q=stemma+qt+cable&sort=BestMatch)

We’ve of course broken out all the pins to standard headers and added a 3.3V voltage regulator and level shifting so allow you to use it with either 3.3V or 5V systems such as the Arduino Uno, or Feather M4, or Raspberry Pi.

# Adafruit SGP40 Air Quality Sensor

## Pinouts

![](https://cdn-learn.adafruit.com/assets/assets/000/097/508/medium800/sensors_SGP40_pinouts.jpg?1607381430)

## Power Pins:

- **Vin** - this is the power pin. Since the sensor chip uses 3 VDC for logic, we have included a voltage regulator on board that will take 3-5VDC and safely convert it down. To power the board, give it the same power as the logic level of your microcontroller - e.g. for a 5V micro like Arduino, use 5V
- **3.3V** - this is the 3.3V output from the voltage regulator, you can grab up to 100mA from this if you like
- **GND** - common ground for power and logic

# Data Pins

- **SCL** - I2C clock pin, connect to your microcontrollers I2C clock line. Can use 3V or 5V logic, and has a 10K pullup to **Vin**
- **SDA** - I2C data pin, connect to your microcontrollers I2C data line. Can use 3V or 5V logic, and has a 10K pullup to **Vin**  
- [**STEMMA QT**](https://learn.adafruit.com/introducing-adafruit-stemma-qt) **&nbsp;-** These connectors allow you to connectors to dev boards with&nbsp; **STEMMA QT** connectors or to other things with&nbsp;[various associated accessories](https://www.adafruit.com/?q=JST%20SH%204)

# Adafruit SGP40 Air Quality Sensor

## Arduino

Using the SGP40 with Arduino is a simple matter of wiring up the sensor to your Arduino-compatible microcontroller, installing the [Adafruit SGP40](https://github.com/adafruit/Adafruit_SGP40) library we've written, and running the provided example code.

## **I2C Wiring**

Use this wiring if you want to connect via I2C interface. The default I2C address for the SGP40 is **0x59**.&nbsp;

Here is how to wire up the sensor using one of the [**STEMMA QT**](https://learn.adafruit.com/introducing-adafruit-stemma-qt) connectors. The examples show a Metro but wiring will work the same for an Arduino or other compatible board.

- Connect&nbsp;**board VIN (red wire)** to&nbsp; **Arduino 5V** &nbsp;if you are running a **5V** Arduino (Uno, etc.). If your Arduino is **3V,** connect to that instead.
- Connect **board GND (black wire)&nbsp;**to&nbsp; **Arduino**  **GND**
- Connect **board SCL (yellow wire)&nbsp;**to&nbsp; **Arduino**  **SCL**
- Connect **board SDA (blue wire)&nbsp;**to&nbsp; **Arduino**  **SDA**

![sensors_SGP40_arduino_I2C_STEMMA_bb.jpg](https://cdn-learn.adafruit.com/assets/assets/000/097/515/medium640/sensors_SGP40_arduino_I2C_STEMMA_bb.jpg?1607451135)

Here is how to wire the sensor to a board using a solderless breadboard:

- Connect&nbsp;**board VIN (red wire)** to&nbsp; **Arduino 5V** &nbsp;if you are running a **5V** Arduino (Uno, etc.). If your Arduino is **3V,** connect to that instead.
- Connect **board GND (black wire)&nbsp;**to&nbsp; **Arduino**  **GND**
- Connect **board SCL (yellow wire)&nbsp;**to&nbsp; **Arduino**  **SCL**
- Connect **board SDA (blue wire)&nbsp;**to&nbsp; **Arduino**  **SDA**

![sensors_SGP40_arduino_I2C_breadboard_bb.jpg](https://cdn-learn.adafruit.com/assets/assets/000/097/516/medium640/sensors_SGP40_arduino_I2C_breadboard_bb.jpg?1607451226)

## **Library Installation**

You can install the **Adafruit SGP40 l** ibrary for Arduino using the Library Manager in the Arduino IDE.

![](https://cdn-learn.adafruit.com/assets/assets/000/098/207/medium800/sensors_a_ARDUINO_-_library_manager_menu.png?1609281265)

Click the&nbsp; **Manage Libraries ...** menu item, search for **Adafruit SGP40** ,&nbsp;and select the&nbsp; **Adafruit SGP40** &nbsp;library:

![](https://cdn-learn.adafruit.com/assets/assets/000/098/210/medium800/sensors_image.png?1609281538)

Follow the same process for the&nbsp; **Adafruit BusIO** &nbsp;library.

![](https://cdn-learn.adafruit.com/assets/assets/000/098/208/medium800/sensors_aa_ARDUINO-_BusIO_Lib_Manager.png?1609281278)

Finally follow the same process for the **Adafruit SHT31 Library** :

![](https://cdn-learn.adafruit.com/assets/assets/000/098/211/medium800/sensors_image.png?1609281574)

## **Load Basic Example**

Open up&nbsp; **File -\> Examples -\> Adafruit SGP40 -\> sgp40test**

![](https://cdn-learn.adafruit.com/assets/assets/000/098/241/medium800/sensors_image.png?1609346762)

After opening the demo file, upload to your Arduino wired up to the sensor. Once you upload the code, you will see the **Raw measurement** &nbsp;values being printed when you open the Serial Monitor ( **Tools-\>Serial Monitor** ) at **115200 baud** , similar to this:

![](https://cdn-learn.adafruit.com/assets/assets/000/098/205/medium800/sensors_image.png?1609280306)

These measurements rare the raw values from the VOC-sensitive resistor. They aren't quite 'resistance' but they're related. The number is affected by VOC as well as humidity.

## **VOC Index Example Code**
Next we'll use the SGP40 along with a SHT31 humidity sensor to calculate the VOC Index, with the SHT31 providing humidity measurements to allow the SGP40 to correct for it

For this example, you'll need to add a [**SHT31**](https://www.adafruit.com/product/2857 "SHT31") humidity sensor to the I2C bus, connected along with the SGP40 to the Metro/Arduino.&nbsp;

![](https://cdn-learn.adafruit.com/assets/assets/000/098/220/medium800/sensors_image.png?1609282852)

Simply add connections for **VIN** , **GND** , **SCL** , and **SDA&nbsp;** between the **SGP40** and **SHT31 as seen above.&nbsp;** Alternately the SHT31 can be wired directly to the Metro's I2C connections.

With the wiring done, open up **File -\> Examples -\> Adafruit SGP40 -\> sgp40\_voc**

![](https://cdn-learn.adafruit.com/assets/assets/000/098/242/medium800/sensors_image.png?1609346799)

After opening the demo file, upload to your Arduino wired up to the sensor. Once you upload the code, you will see the **raw measurement** and **VOC Index** values being printed when you open the Serial Monitor ( **Tools-\>Serial Monitor** ) at **115200 baud** , similar to this:

![](https://cdn-learn.adafruit.com/assets/assets/000/098/206/medium800/sensors_image.png?1609280960)

It may take several minutes for the Voc index to start changing as it calibrates the baseline readings. [We use the Sensirion SGP40 algorithm found here](https://github.com/Sensirion/embedded-sgp/tree/master/sgp40_voc_index)

# Adafruit SGP40 Air Quality Sensor

## Arduino Docs

# Adafruit SGP40 Air Quality Sensor

## Python & CircuitPython

It's easy to use the **SGP40** with Python or CircuitPython, and the [Adafruit CircuitPython SGP40](https://github.com/adafruit/Adafruit_CircuitPython_SGP40) module. This module allows you to easily write Python code that reads gas measurements from the **SGP40** sensor.

You can use this sensor with any CircuitPython microcontroller board or with a computer that has GPIO and Python [thanks to Adafruit\_Blinka, our CircuitPython-for-Python compatibility library](https://learn.adafruit.com/circuitpython-on-raspberrypi-linux).

## **CircuitPython Microcontroller Wiring**

First wire up a SGP40 to your board exactly as shown below. Here's an example of wiring a Feather M4 to the sensor with I2C using one of the handy [**STEMMA QT**](https://learn.adafruit.com/introducing-adafruit-stemma-qt) connectors:

- **Board 3V** &nbsp;to&nbsp;**sensor VIN (red wire)**
- **Board GND** &nbsp;to&nbsp;**sensor GND (black wire)**
- **Board SCL** &nbsp;to&nbsp;**sensor SCL (yellow wire)**
- **Board SDA** &nbsp;to&nbsp;**sensor SDA (blue wire)**

![sensors_image.png](https://cdn-learn.adafruit.com/assets/assets/000/098/200/medium640/sensors_image.png?1609279070)

You can also use the standard **0.100" pitch** headers to wire it up on a breadboard:

- **Board 3V** &nbsp;to&nbsp;**sensor VIN (red wire)**
- **Board GND** &nbsp;to&nbsp;**sensor GND (black wire)**
- **Board SCL** &nbsp;to&nbsp;**sensor SCL (yellow wire)**
- **Board SDA** &nbsp;to&nbsp;**sensor SDA (blue wire)**

![sensors_image.png](https://cdn-learn.adafruit.com/assets/assets/000/098/201/medium640/sensors_image.png?1609279051)

## **Python Computer Wiring**

Since there's _dozens_ of Linux computers/boards you can use, we will show wiring for Raspberry Pi. For other platforms, [please visit the guide for CircuitPython on Linux to see whether your platform is supported](https://learn.adafruit.com/circuitpython-on-raspberrypi-linux).&nbsp;

Here's the Raspberry Pi wired to the sensor using I2C and a [**STEMMA QT**](https://learn.adafruit.com/introducing-adafruit-stemma-qt) connector:

- **Pi 3V** &nbsp;to&nbsp;**sensor VCC (red wire)**
- **Pi GND** &nbsp;to&nbsp;**sensor GND (black wire)**
- **Pi SCL** &nbsp;to&nbsp;**sensor SCL (yellow wire)**
- **Pi SDA** &nbsp;to&nbsp;**sensor SDA (blue wire)**

![sensors_image.png](https://cdn-learn.adafruit.com/assets/assets/000/098/202/medium640/sensors_image.png?1609278973)

Finally here is an example of how to wire up a Raspberry Pi to the sensor using a solderless breadboard

- **Pi 3V** &nbsp;to&nbsp;**sensor VCC (red wire)**
- **Pi GND** &nbsp;to&nbsp;**sensor GND (black wire)**
- **Pi SCL** &nbsp;to&nbsp;**sensor SCL (yellow wire)**
- **Pi SDA** &nbsp;to&nbsp;**sensor SDA (blue wire)**

![sensors_image.png](https://cdn-learn.adafruit.com/assets/assets/000/098/203/medium640/sensors_image.png?1609279013)

## **CircuitPython Installation of SGP40 Library**

You'll need to install the [Adafruit CircuitPython SGP40](https://github.com/adafruit/Adafruit_CircuitPython_SGP40) library on your CircuitPython board.

First make sure you are running the&nbsp;[latest version of Adafruit CircuitPython](https://learn.adafruit.com/welcome-to-circuitpython/installing-circuitpython)&nbsp;for your board.

Next you'll need to install the necessary libraries&nbsp;to use the hardware--carefully follow the steps to find and install these libraries from&nbsp;[Adafruit's CircuitPython library bundle](https://circuitpython.org/libraries).&nbsp; Our CircuitPython starter guide has [a great page on how to install the library bundle](https://learn.adafruit.com/welcome-to-circuitpython/circuitpython-libraries).

Before continuing make sure your board's **lib** folder or root filesystem has the **adafruit\_SGP40**  **and adafruit\_bus\_device** folders copied over. Your CIRCUITPY drive should look like this:

![CIRCUITPY](https://adafruit.github.io/Adafruit_CircuitPython_Bundle/sgp40_sgp40_simpletest.py.png )

Next&nbsp;[connect to the board's serial REPL&nbsp;](https://learn.adafruit.com/welcome-to-circuitpython/the-repl)so you are at the CircuitPython&nbsp; **\>\>\>** &nbsp;prompt.

## **Python Installation of SGP40 Library**

You'll need to install the **Adafruit\_Blinka** library that provides the CircuitPython support in Python. This may also require enabling I2C on your platform and verifying you are running Python 3.&nbsp;[Since each platform is a little different, and Linux changes often, please visit the CircuitPython on Linux guide to get your computer ready](https://learn.adafruit.com/circuitpython-on-raspberrypi-linux)!

Once that's done, from your command line run the following command:

- `sudo pip3 install adafruit-circuitpython-sgp40`

If your default Python is version 3 you may need to run 'pip' instead. Just make sure you aren't trying to use CircuitPython on Python 2.x, it isn't supported!

## **CircuitPython & Python Usage**

To demonstrate the usage of the sensor we'll initialize it and read the raw gas measurements from the board's Python REPL.

Run the following code to import the necessary modules and initialize the I2C connection with the sensor:

```python
import board
import busio
import adafruit_sgp40

i2c = busio.I2C(board.SCL, board.SDA)
sgp = adafruit_sgp40.SGP40(i2c)
```

![](https://cdn-learn.adafruit.com/assets/assets/000/098/196/medium800/sensors_image.png?1609277064)

Now you're ready to read values from the sensor using the&nbsp; **raw** property to read the raw gas measurements.

```python
print("Raw Gas: ", sgp.raw)
```

![](https://cdn-learn.adafruit.com/assets/assets/000/098/197/medium800/sensors_image.png?1609277114)

These measurements rare the raw values from the VOC-sensitive resistor. They aren't quite 'resistance' but they're related. The number is affected by VOC as well as humidity.

## **Example Code**
https://github.com/adafruit/Adafruit_CircuitPython_SGP40/blob/main/examples/sgp40_simpletest.py

# Adafruit SGP40 Air Quality Sensor

## Python Docs

# Adafruit SGP40 Air Quality Sensor

## WipperSnapper

![](https://cdn-learn.adafruit.com/assets/assets/000/124/639/medium800/sensors_01_DeviceList.png?1695209564)

## What is WipperSnapper

WipperSnapper is a firmware designed to turn any WiFi-capable board into an Internet-of-Things device without programming a single line of code. WipperSnapper connects to [Adafruit IO](https://io.adafruit.com/), a web&nbsp;platform designed ([by Adafruit!](https://www.adafruit.com/about)) to&nbsp;_display_,&nbsp;_respond_, and&nbsp;_interact_&nbsp;with your project's data.

Simply load the WipperSnapper firmware onto your board, add credentials, and plug it into power. Your board will automatically register itself with your Adafruit IO account.

From there, you can add&nbsp;_components_&nbsp;to your board such as buttons, switches, potentiometers, sensors, and more! Components are&nbsp;_dynamically&nbsp;_added to hardware, so you can&nbsp;immediately start interacting, logging, and streaming the data your projects produce without writing code.

If you've never used WipperSnapper, click below to read through the quick start guide before continuing.

[Quickstart: Adafruit IO WipperSnapper](https://learn.adafruit.com/quickstart-adafruit-io-wippersnapper)
## Wiring
First, wire up an **SGP40** to your board exactly as follows. Here is an example of the **SGP40** wired to an&nbsp;[Adafruit ESP32 Feather V2](https://www.adafruit.com/product/5400)&nbsp;using I2C&nbsp;[with a STEMMA QT cable (no soldering required)](https://www.adafruit.com/product/4210)

- **Board 3V** &nbsp;to&nbsp;**sensor VIN (red wire on STEMMA QT)**  
- **Board GND** &nbsp;to&nbsp;**sensor GND (black wire on STEMMA QT)**  
- **Board SCL** &nbsp;to&nbsp;**sensor SCL (yellow wire on STEMMA QT)**  
- **Board SDA** &nbsp;to&nbsp;**sensor SDA (blue wire on STEMMA QT)**

![sensors_featherV2_SGP40_bb.png](https://cdn-learn.adafruit.com/assets/assets/000/124/636/medium640/sensors_featherV2_SGP40_bb.png?1695209444)

![sensors_featherV2_SGP40_Breadboard_bb.png](https://cdn-learn.adafruit.com/assets/assets/000/124/637/medium640/sensors_featherV2_SGP40_Breadboard_bb.png?1695209496)

## Usage

Connect your board to Adafruit IO Wippersnapper and **[navigate to the WipperSnapper board list](https://io.adafruit.com/wippersnapper).**

On this page, **select the WipperSnapper board you're using** to be brought to the board's interface page.

![](https://cdn-learn.adafruit.com/assets/assets/000/124/638/medium800/sensors_02_DeviceSelection.png?1695209543)

If you do not see your board listed here - you need [to connect your board to Adafruit IO](https://learn.adafruit.com/quickstart-adafruit-io-wippersnapper) first.

On the device page, quickly&nbsp; **check that you're running the latest version of the WipperSnapper firmware**.

The device tile on the left indicates the version number of the firmware running on the connected board.

- **If the firmware version is green with a checkmark -** &nbsp;continue with this guide.
- **If the firmware version is red with an exclamation mark "!" -** &nbsp;[update to the latest WipperSnapper firmware](https://learn.adafruit.com/quickstart-adafruit-io-wippersnapper)&nbsp;on your board before continuing.

![sensors_04_LatestVersion.png](https://cdn-learn.adafruit.com/assets/assets/000/124/640/medium640/sensors_04_LatestVersion.png?1695209686)

![sensors_04_UpdateRequired.png](https://cdn-learn.adafruit.com/assets/assets/000/124/641/medium640/sensors_04_UpdateRequired.png?1695209711)

Next, make sure the sensor is plugged into your board and click the **&nbsp;I2C Scan&nbsp;** button.

![](https://cdn-learn.adafruit.com/assets/assets/000/113/177/medium800/sensor_page_crop_scan.png?1657724520)

You should see the **SGP40**'s default I2C address of `0x59`&nbsp;pop-up in the I2C scan list.

![](https://cdn-learn.adafruit.com/assets/assets/000/124/647/medium800/sensors_I2C_0x59.png?1695213143)

###  I don't see the sensor's I2C address listed! 


First, double-check the connection and/or wiring between the sensor and the board.

Then, reset the board and let it re-connect to Adafruit IO WipperSnapper.

With the sensor detected in an I2C scan, you're ready to add the sensor to your board.

**Click the New Component button or the + button** to bring up the component picker.

![](https://cdn-learn.adafruit.com/assets/assets/000/127/931/medium800/sensor_page_temperature___humidity_06_AddComponent.png?1708631009)

Adafruit IO supports a large amount of components. To quickly find your sensor, type&nbsp;`SGP40`&nbsp;into the search bar, then select the&nbsp; **SGP40** &nbsp;component.

![](https://cdn-learn.adafruit.com/assets/assets/000/128/327/medium800/sensors_yJD9Z84swE.png?1709231453)

On the component configuration page, the **SGP40**'s sensor address should be listed along with the sensor's settings.

The&nbsp; **Send Every** &nbsp;option is specific to each sensor's measurements. This option will tell the Feather how often it should read from the **SGP40** sensor and send the data to Adafruit IO. Measurements can range from every 30 seconds to every 24 hours.

For this example, set the&nbsp; **Send Every&nbsp;** interval to every 30 seconds.

![](https://cdn-learn.adafruit.com/assets/assets/000/124/650/medium800/sensors_device_detail.png?1695218360)

Your device interface should now show the sensor components you created. After the interval you configured elapses, WipperSnapper will automatically read values from the sensor(s) and send them to Adafruit IO.

![](https://cdn-learn.adafruit.com/assets/assets/000/124/651/medium800/sensors_feeds.png?1695218516)

To view the data that has been logged from the sensor, click on the graph next to the sensor name.

![](https://cdn-learn.adafruit.com/assets/assets/000/124/654/medium800/sensors_feed_arrow.png?1695231583)

Here you can see the feed history and edit things about the feed such as the name, privacy, webhooks associated with the feed and more. If you want to learn more about how feeds work, [check out this page](https://learn.adafruit.com/all-the-internet-of-things-episode-four-adafruit-io/advanced-feeds).

![](https://cdn-learn.adafruit.com/assets/assets/000/124/655/medium800/sensors_graph.png?1695231757)

# Adafruit SGP40 Air Quality Sensor

## Downloads

## Files:

- [SGP40 Datasheet](https://cdn-learn.adafruit.com/assets/assets/000/097/511/original/Sensirion_Gas-Sensors_SGP40_Datasheet.pdf?1607381770)
- [Fritzing object in the Adafruit Fritzing Library](https://github.com/adafruit/Fritzing-Library/blob/master/parts/Adafruit%20SGP40.fzpz)
- [EagleCAD PCB files on GitHub](https://github.com/adafruit/Adafruit-SGP40-PCB)
- [3D models on GitHub](https://github.com/adafruit/Adafruit_CAD_Parts/tree/main/4829%20SGP40%20Sensor)

[VOC Index for Experts App note](https://cdn-learn.adafruit.com/assets/assets/000/110/470/original/GAS_AN_SGP40_VOC_Index_for_Experts_D1.pdf?1648938381)
# Schematic
![](https://cdn-learn.adafruit.com/assets/assets/000/097/509/medium800/sensors_SGP40_sch.png?1607381698)

# Fab Print
![](https://cdn-learn.adafruit.com/assets/assets/000/099/596/medium800/sensors_SGP40_fab_print.png?1613597171)

![](https://cdn-learn.adafruit.com/assets/assets/000/117/034/medium800/sensors_PCB-Component.jpg?1670878432)


## Primary Products

### Adafruit SGP40 Air Quality Sensor Breakout - VOC Index

[Adafruit SGP40 Air Quality Sensor Breakout - VOC Index](https://www.adafruit.com/product/4829)
\*sniff\* \*sniff\* ... do you smell that? No need to stick your nose into a carton of milk anymore, you can build a digital nose with the SGP40 Multi-Pixel Gas Sensor, a fully integrated MOX gas sensor. This is a very fine air quality sensor from the sensor experts at Sensirion, with I2C...

In Stock
[Buy Now](https://www.adafruit.com/product/4829)
[Related Guides to the Product](https://learn.adafruit.com/products/4829/guides)

## Featured Products

### STEMMA QT / Qwiic JST SH 4-pin to Premium Male Headers Cable

[STEMMA QT / Qwiic JST SH 4-pin to Premium Male Headers Cable](https://www.adafruit.com/product/4209)
This 4-wire cable is a little over 150mm / 6" long and fitted with JST-SH female 4-pin connectors on one end and premium Dupont male headers on the other. Compared with the chunkier JST-PH these are 1mm pitch instead of 2mm, but still have a nice latching feel, while being easy to insert...

In Stock
[Buy Now](https://www.adafruit.com/product/4209)
[Related Guides to the Product](https://learn.adafruit.com/products/4209/guides)
### JST SH 4-pin Cable with Alligator Clips - STEMMA QT / Qwiic

[JST SH 4-pin Cable with Alligator Clips - STEMMA QT / Qwiic](https://www.adafruit.com/product/4398)
This cable will make it super easy to use our plug-and-play STEMMA QT boards with boards like Circuit Playground. On one end you get a Qwiic / STEMMA QT connector (technically known as a JST SH 4-pin plug)&nbsp; into 4 individual wires with grippy alligator clips. We're carrying these to...

Out of Stock
[Buy Now](https://www.adafruit.com/product/4398)
[Related Guides to the Product](https://learn.adafruit.com/products/4398/guides)
### 4-pin JST PH to JST SH Cable - STEMMA to QT / Qwiic

[4-pin JST PH to JST SH Cable - STEMMA to QT / Qwiic](https://www.adafruit.com/product/4424)
Are you a maker in the midst of&nbsp;a [**STEMMA**](https://learn.adafruit.com/introducing-adafruit-stemma-qt/what-is-stemma) dilemma? This 200mm long 4-wire cable is a fantastic chimera-cable fitted with **STEMMA QT / Sparkfun Qwiic JST SH** on one end,...

In Stock
[Buy Now](https://www.adafruit.com/product/4424)
[Related Guides to the Product](https://learn.adafruit.com/products/4424/guides)
### STEMMA QT / Qwiic JST SH 4-pin Cable with Premium Female Sockets

[STEMMA QT / Qwiic JST SH 4-pin Cable with Premium Female Sockets](https://www.adafruit.com/product/4397)
This 4-wire cable is a little over 150mm / 6" long and fitted with JST-SH female 4-pin connectors on one end and premium female headers on the other. Compared with the chunkier JST-PH these are 1mm pitch instead of 2mm, but still have a nice latching feel, while being easy to insert and...

In Stock
[Buy Now](https://www.adafruit.com/product/4397)
[Related Guides to the Product](https://learn.adafruit.com/products/4397/guides)
### STEMMA QT / Qwiic JST SH 4-pin Cable - 100mm Long

[STEMMA QT / Qwiic JST SH 4-pin Cable - 100mm Long](https://www.adafruit.com/product/4210)
This 4-wire cable is a little over 100mm / 4" long and fitted with JST-SH female 4-pin connectors on both ends. Compared with the chunkier JST-PH these are 1mm pitch instead of 2mm, but still have a nice latching feel, while being easy to insert and remove.

<a...></a...>

Out of Stock
[Buy Now](https://www.adafruit.com/product/4210)
[Related Guides to the Product](https://learn.adafruit.com/products/4210/guides)

## Related Guides

- [Adafruit CC3000 WiFi](https://learn.adafruit.com/adafruit-cc3000-wifi.md)
- [Adafruit Hallowing M4](https://learn.adafruit.com/adafruit-hallowing-m4.md)
- [Lighting LED Nets with WLED and xLights](https://learn.adafruit.com/lighting-led-nets-with-wled-and-xlights.md)
- [Pet Bowl Water Level Sensing](https://learn.adafruit.com/pet-bowl-water-level-sensing-with-the-funhouse-and-home-assistant.md)
- [Adafruit Pixel Trinkey](https://learn.adafruit.com/adafruit-pixel-trinkey.md)
- [Adafruit Ultimate GPS HAT for Raspberry Pi](https://learn.adafruit.com/adafruit-ultimate-gps-hat-for-raspberry-pi.md)
- [Adafruit MCP9808 Precision I2C Temperature Sensor Guide](https://learn.adafruit.com/adafruit-mcp9808-precision-i2c-temperature-sensor-guide.md)
- [Adafruit I2C QT Rotary Encoder](https://learn.adafruit.com/adafruit-i2c-qt-rotary-encoder.md)
- [How To Solder Headers](https://learn.adafruit.com/how-to-solder-headers.md)
- [Adafruit VL53L4CD Time of Flight Distance Sensor](https://learn.adafruit.com/adafruit-vl53l4cd-time-of-flight-distance-sensor.md)
- [Adafruit ItsyBitsy nRF52840 Express](https://learn.adafruit.com/adafruit-itsybitsy-nrf52840-express.md)
- [NES Cart RetroPie Game Console](https://learn.adafruit.com/nes-cart-retropie.md)
- [Adafruit Si5351 Clock Generator Breakout](https://learn.adafruit.com/adafruit-si5351-clock-generator-breakout.md)
- [Adafruit ST25DV16K I2C RFID EEPROM Breakout](https://learn.adafruit.com/adafruit-st25dv16k-i2c-rfic-eeprom-breakout.md)
- [Adafruit BME280 Humidity + Barometric Pressure + Temperature Sensor Breakout](https://learn.adafruit.com/adafruit-bme280-humidity-barometric-pressure-temperature-sensor-breakout.md)
