The Sensirion SGP30 is a tiny low-power gas sensor (produced in Switzerland) for indoor air quality applications with good long-term stability. It has an I²C interface with TVOC (Total Volatile Organic Compounds) and CO₂ equivalent signals.
For development, I used the Adafruit SGP30 breakout board:
This time I won't explain how to use the driver in this blogpost, because the docs should be quite comprehensive. Check them out!
You can find an example script for Linux on Github.