SGP30 Air Quality Gas Sensor Measurement TVOC/eCO2 Formaldehyde Carbon Dioxide Detector Tester

$26.20 Inc. GST
You save (%)

Availability: 2 in stock Category:
Quantity Discount (%) Price
1 $26.20
2 - 4 5 % $24.89
5 - 9 7.5 % $24.24
10 - 19 10 % $23.58
20 - 49 12.5 % $22.93
50 - 99 15 % $22.27
100+ 17.5 % $21.62

Description

Enhance Indoor Air Monitoring with GY-SGP30 Air Quality Gas Sensor Measurement

Elevate your indoor air quality monitoring with the advanced GY-SGP30 Air Quality Gas Sensor. This cutting-edge sensor is designed to measure a spectrum of gases, including Total Volatile Organic Compounds (TVOC), equivalent CO2 (eCO2), formaldehyde, and carbon dioxide. Whether you’re ensuring the well-being of your family or optimizing your smart home environment, this sensor is an indispensable tool.

Key Features:

  1. Premium Quality: The GY-SGP30 boasts a state-of-the-art metal oxide gas sensor with multiple sensing elements all on a single chip, guaranteeing accurate and reliable readings.
  2. Comprehensive Integration: This sensor effortlessly integrates four gas sensing elements, offering a fully calibrated air quality output signal that you can trust.
  3. Versatile Application: With its ease of integration, the GY-SGP30 seamlessly incorporates metal oxide gas sensors into mobile devices. This paves the way for innovative environmental monitoring in various scenarios, from smart homes to IoT applications.
  4. Simplified Design: The sensor’s circuit features a simple and rational structure, ensuring straightforward operation even for those new to air quality monitoring technology.
  5. Durable Construction: Crafted from high-quality metal materials, the GY-SGP30 is resistant to wear and corrosion, translating to improved stability and an extended service life.

Product Description:

Effortlessly lightweight and remarkably easy to install and operate, the GY-SGP30 Air Quality Gas Sensor adds a layer of sophistication to your air monitoring endeavors. Its implementation of synchronous rectifier technology further refines its capabilities.

Specifications:

  • Model Number: GY-SGP30
  • Power Compatibility: 2V – 5V
  • Color: Blue
  • Dimensions: 13mm x 10.5mm x 2.6mm

Package Contents:

  • 1 x GY-SGP30 Air Quality Sensor Module

Make informed decisions about your indoor environment with the GY-SGP30 Air Quality Gas Sensor. Whether you’re ensuring a safe living space or optimizing your workspace, this sensor empowers you with accurate and comprehensive air quality insights. Take the step towards a healthier future today.

📌 Code Examples & Usage – SGP30 Air Quality Sensor (TVOC & eCO₂)

📋 Overview

The SGP30 is a digital air quality sensor from Sensirion that measures:

  • TVOC (Total Volatile Organic Compounds) in ppb

  • eCO₂ (equivalent CO₂) in ppm

Unlike MQ sensors, the SGP30 provides calibrated digital readings via I²C, making it ideal for:

  • Indoor air quality monitoring

  • Smart home & HVAC systems

  • Environmental logging

  • IoT dashboards

  • Schools and offices

⚠ The SGP30 measures eCO₂ (equivalent CO₂), not true CO₂ concentration. It estimates CO₂ levels based on VOC measurements.


🔌 Wiring (I²C)

Typical Pinout

SGP30 Pin Arduino Uno ESP32 (Example)
VCC 3.3V or 5V 3.3V
GND GND GND
SDA A4 GPIO21
SCL A5 GPIO22

✔ Logic level compatible with 3.3 V & 5 V
✔ I²C address: 0x58


📦 Library Installation (Arduino IDE)

  1. Open Arduino IDE

  2. Go to Sketch → Include Library → Manage Libraries

  3. Search for Adafruit SGP30

  4. Install Adafruit SGP30 Sensor Library


🧪 1️⃣ Arduino Example – Basic Air Quality Readings

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

Adafruit_SGP30 sgp;

void setup() {
Serial.begin(9600);
Wire.begin();

if (!sgp.begin()) {
Serial.println("SGP30 not found");
while (1);
}

Serial.println("SGP30 Air Quality Sensor Ready");
}

void loop() {
if (!sgp.IAQmeasure()) {
Serial.println("Measurement failed");
return;
}

Serial.print("TVOC: ");
Serial.print(sgp.TVOC);
Serial.print(" ppb ");

Serial.print("eCO2: ");
Serial.print(sgp.eCO2);
Serial.println(" ppm");

delay(1000);
}


🧪 2️⃣ ESP32 Example

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

Adafruit_SGP30 sgp;

void setup() {
Serial.begin(115200);
Wire.begin(21, 22);

if (!sgp.begin()) {
Serial.println("SGP30 not detected");
while (true);
}

Serial.println("SGP30 ready");
}

void loop() {
if (sgp.IAQmeasure()) {
Serial.print("TVOC: ");
Serial.print(sgp.TVOC);
Serial.print(" ppb | eCO2: ");
Serial.print(sgp.eCO2);
Serial.println(" ppm");
}

delay(1000);
}


⏱ 3️⃣ Burn-In & Baseline (VERY IMPORTANT)

Initial Burn-In

  • First use: Allow 12–24 hours of continuous operation

  • Sensor must be powered and read once per second

Baseline Learning

The SGP30 self-calibrates over time. For best accuracy:

  • Run continuously for 7 days

  • Save baseline values periodically

  • Restore baseline after reboot (optional but recommended)


🧪 4️⃣ Baseline Save & Restore Example

uint16_t eco2_base, tvoc_base;

void saveBaseline() {
if (sgp.getIAQBaseline(&eco2_base, &tvoc_base)) {
Serial.print("Baseline eCO2: ");
Serial.print(eco2_base);
Serial.print(" TVOC: ");
Serial.println(tvoc_base);
}
}

void restoreBaseline() {
sgp.setIAQBaseline(eco2_base, tvoc_base);
}

✔ Ideal for battery-powered or restarted devices
✔ Baseline can be stored in EEPROM or flash


💧 5️⃣ Humidity Compensation (Recommended)

Providing humidity improves accuracy.

float temperature = 25.0; // °C
float humidity = 50.0; // %

uint32_t absoluteHumidity =
(uint32_t)(216.7f * ((humidity / 100.0f) * 6.112f * exp((17.62f * temperature) / (243.12f + temperature)) / (273.15f + temperature)));

sgp.setHumidity(absoluteHumidity);

✔ Use with DHT22, SHT31, or similar sensors
✔ Improves stability and accuracy


📊 Understanding the Readings

eCO₂ (ppm)

Range Air Quality
< 800 Excellent
800–1200 Good
1200–2000 Poor
> 2000 Very poor

TVOC (ppb)

Range Air Quality
< 150 Excellent
150–500 Good
500–1500 Moderate
> 1500 Poor

🧠 Tips & Best Practices

✔ Read sensor once per second (required)
✔ Keep away from alcohol, solvents during calibration
✔ Do not power-cycle frequently during burn-in
✔ Allow airflow — do not seal inside airtight enclosures
✔ Use humidity compensation if possible

Additional information

Weight 20 g
Dimensions 260 × 160 × 2 mm

Reviews

There are no reviews yet.


Only logged in customers who have purchased this product may leave a review.