The Adafruit ENS160 MOX Gas Sensor (Part ID: 5606) is a digital metal-oxide (MOX) gas sensor designed for indoor air quality monitoring. It is capable of detecting various gases and volatile organic compounds (VOCs), making it an essential component for applications such as air purifiers, HVAC systems, and smart home devices. This sensor provides accurate and reliable measurements, ensuring optimal indoor air quality.
Parameter | Value |
---|---|
Operating Voltage | 3.3V - 5V |
Operating Current | 29mA (typical) |
Interface | I2C, SPI |
I2C Address | 0x53 |
Operating Temperature | -40°C to 85°C |
Gas Detection Range | 0 - 500 ppm (CO2 equivalent) |
Dimensions | 20mm x 20mm x 3.2mm |
Pin | Name | Description |
---|---|---|
1 | VCC | Power supply (3.3V - 5V) |
2 | GND | Ground |
3 | SDA | I2C data line |
4 | SCL | I2C clock line |
5 | INT | Interrupt output (optional) |
6 | CS | Chip select for SPI (optional) |
7 | SDO | SPI data output (optional) |
8 | SDI | SPI data input (optional) |
#include <Wire.h>
#include "Adafruit_ENS160.h"
// Create an instance of the sensor
Adafruit_ENS160 ens160;
void setup() {
Serial.begin(115200);
// Initialize I2C communication
Wire.begin();
// Initialize the sensor
if (!ens160.begin()) {
Serial.println("Failed to find ENS160 sensor!");
while (1);
}
Serial.println("ENS160 sensor found!");
}
void loop() {
// Read gas concentrations
ens160.readGas();
// Print the gas concentrations
Serial.print("eCO2: ");
Serial.print(ens160.eCO2);
Serial.print(" ppm, TVOC: ");
Serial.print(ens160.TVOC);
Serial.println(" ppb");
// Wait for 1 second before the next reading
delay(1000);
}
By following this documentation, users can effectively integrate and utilize the Adafruit ENS160 MOX Gas Sensor in their projects, ensuring accurate indoor air quality monitoring.