SparkFun SGP40 Library
SparkFun Air Quality Sensor Breakout - SGP40 (Qwiic) (SEN-18345)
The SGP40 is a digital gas sensor designed for easy integration into air purifiers or demand-controlled ventilation systems. Sensirion’s CMOSens® technology offers a complete, easy to use sensor system on a single chip featuring a digital I2C interface and a temperature controlled micro hotplate, providing a humidity compensated VOC based indoor air quality signal.
This library uses Sensirion’s powerful VOC Algorithm to translate the sensor's raw output signal into a VOC Index as a robust measure for indoor air quality.
The VOC Algorithm automatically adapts to the environment the sensor is exposed to. Both sensing element and VOC Algorithm feature an unmatched robustness against contaminating gases present in real world applications enabling a unique long term stability as well as low drift and device to device variation.
SparkFun labored with love to create this code. Feel like supporting open source hardware? Buy a board from SparkFun!
Repository Contents
- /examples - Example sketches for the library (.ino). Run these from the Arduino IDE.
- /src - Source files for the library (.cpp, .h).
- keywords.txt - Keywords from this library that will be highlighted in the Arduino IDE.
- library.properties - General library properties for the Arduino package manager.
Documentation
- Installing an Arduino Library Guide - Basic information on how to install an Arduino library.
- Hookup Guide - Basic Hookup Guide for the SparkFun Air Quality Sensor - SGP40 (Qwiic).
- SparkFun Version Product Repository - Main SparkFun version repository.
- SparkX Version Product Repository - Main SparkX version repository (including hardware files)
Products that use this library
License Information
This product is open source!
Please use, reuse, and modify these files as you see fit. Please maintain attribution to SparkFun Electronics and release anything derivative under the same license.
Distributed as-is; no warranty is given.
- Your friends at SparkFun.