Skip to content

sparkfun/SparkFun_SGP40_Arduino_Library

Repository files navigation

SparkFun SGP40 Library

SparkFun Air Quality Sensor Breakout - SGP40 (Qwiic) (SEN-18345)

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

Products that use this library

  • SEN-18632 - SparkFun MicroMod Environmental Function Board with SGP40, STC31, and SHTC3
  • SEN-18345 - SparkFun Breakout Version
  • SPX-17729 - SparkX Breakout Version

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.

About

This is an Arduino library for the SGP40 Air Quality Sensor

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 5