D1 Mini Shield – SG30 Air Quality Measurement

Last Updated on 15. October 2026 by SuffocationLink status: OK

Diese Sensorplatine besitzt einen SG30-Sensor, welcher organische Verbindungen und H2 in der Luft detektiert und daraus den CO2-Wert errechnen kann (kein echter CO2-Sensor).

For the D1 mini ESP8266 and ESP32, go here:

Facts

  • I2C Interface
  • TVOC Messung: 0-60000 ppb
  • eCO2 Messung: 400-60000 ppm
  • Sensor kann aus der Platine gebrochen und über eine Buchse betrieben werden
  • Φ2mm Befestigungslöcher
DescriptionNameD1ESP32S2C3
Takt I²CSCL5
Daten I²CSeventh-day Adventist4

SLink status: OKchaltplanLink status: OK

Compatibility

D1 TypeCompatibleBegründung, wenn nicht
D1 miniYes
D1 mini ProYesUntested
D1 mini LiteYesUntested
D1 32Yes


S2 mini
YesUntested
C3YesUntested
Kompatibilität zu den D1 Boards

Areas of application

  • Luftwächter
  • Lüftungsregler

Views

Programming

Libraries

Arduino ESP32 Bibliothek V2.0.3-RC1

Arduino ESP8266 Bibliothek V3.0.2

https://github.com/adafruit/Adafruit_SGP30Link status: OK

D1 Mini Shield – SG30 Luftqualitätsmessung – SGP30-Bibliothek einbinden

Test programme

Source code SimpleSensorTest.ino (GitHubLink status: OK)

/** D1 mini Shiel - SGP30 Sensor 
 *  
 *  Lib:
 *  https://github.com/adafruit/Adafruit_SGP30
 *  
 *  Created with help of the existing examples
 *  Created by S. Fambach
 *  
 *  Visit https://www.Fambach.net if you want
 *  
 */

#include <Wire.h>
#include <Adafruit_SGP30.h>
Adafruit_SGP30 sensor; 

void setup()
{

  Serial.begin(115200);
  if (sensor.begin() == false)
  {
    Serial.println(F("Sensor not found"));
    while (1)
      ;
  }


}

void loop()
{

  delay(1000);

  if (sensor.IAQmeasure())
  {

    Serial.print("CO2: ");
    Serial.println(sensor.eCO2);

    Serial.print("TVOC: ");
    Serial.println(sensor.TVOC);
  }
  else
  {
    Serial.println(F("Measurement Error!"));
  }   

  
}

That's how it is

D1 Mini Shield – SG30 Luftqualitätsmessung – Testprogramm Konsolenausgabe

Problems

—

Conclusion

Leichte Implementierung dank der Adafruit-Bibliothek.

More posts

Other Shields

More ESPs

Sources

Sources for the Shield

Manufacturer's websiteLink status: Unknown

https://github.com/adafruit/Adafruit_SGP30Link status: OK

SchematicLink status: OK

SGP30 DatenblattLink status: Unknown

Sources for the boards

Manufacturer's websiteLink status: OK

SchematicLink status: OK

CH340 USB DriverLink status: OK

https://arduino-projekte.info/wemos-d1-mini/Link status: OK

https://www.exp-tech.de/plattformen/esp8266/entwicklungsboards/8898/wemos-d1-miniLink status: Broken

DateChangeAuthor
15.10.2026Beispielcode als Code-Block eingefügt (Einbettung über gist-it.appspot.com funktionierte nicht mehr)Suffocation
08.10.2026Überschriften-Hierarchie korrigiert (H1→H2, Unterebenen eine Stufe tiefer)Suffocation
04.10.2026Rechtschreibung korrigiert: Tippfehler, Groß-/Kleinschreibung, Kommas, fehlende WörterSuffocation
03.10.2026Log-Liste eingefügtSuffocation
16.04.2022Post createdSuffocation
Changelog

Leave a Reply

Your email address will not be published. Required fields are marked *