# SparkFun SCD4x CO2 Sensor Library [![SparkX SCD40 Breakout (Qwiic) (SPX-18365)](https://cdn.sparkfun.com//assets/parts/1/7/7/1/9/18365-Qwiic_SCD40-01.jpg)](https://www.sparkfun.com/products/18365) [*SparkX SCD40 Breakout (Qwiic) (SPX-18365)*](https://www.sparkfun.com/products/18365) The SCD4x is Sensirion's next generation miniature CO2 sensor. This sensor builds on the photoacoustic sensing principle and Sensirion's patented PAsens® and CMOSens® technology to offer high accuracy at an unmatched price and smallest form factor. On-chip signal compensation is realized with the built-in SHT4x humidity and temperature sensor. We've written this Arduino library to make reading the CO2, humidity, and temperature very easy. It can be downloaded through the Arduino Library manager: search for 'SparkFun SCD4x'. Library written by Paul Clark, based on the SCD30 library by Nathan Seidle ([SparkFun](http://www.sparkfun.com)). 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](https://learn.sparkfun.com/tutorials/installing-an-arduino-library)** - Basic information on how to install an Arduino 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.