The Adafruit PMSA003I Air Quality Breakout is a sophisticated sensor module designed to measure the concentration of particulate matter in the air, specifically PM2.5 and PM10 particles. These particles are of particular concern for air quality, as they can penetrate deep into the lungs and even enter the bloodstream. The PMSA003I is based on laser scattering technology, providing reliable and accurate readings, making it an excellent choice for indoor air quality monitoring in homes, offices, and industrial environments.
Pin Number | Name | Description |
---|---|---|
1 | VCC | Power supply (3.3V-5V) |
2 | GND | Ground connection |
3 | SCL | I2C clock line |
4 | SDA | I2C data line |
5 | RX | UART receive pin (optional) |
6 | TX | UART transmit pin (optional) |
7 | RESET | Active low reset pin (optional) |
8 | SET | Active low to enter sleep mode (optional) |
Q: Can the sensor measure other types of particulate matter besides PM2.5 and PM10?
Q: How often should the sensor be calibrated?
Q: Is the sensor waterproof?
#include <Wire.h>
#include "Adafruit_PM25AQI.h"
Adafruit_PM25AQI aqi = Adafruit_PM25AQI();
void setup() {
Serial.begin(9600);
// Wait for serial monitor to open
while (!Serial) { delay(10); }
Serial.println("Adafruit PMSA003I Air Quality Sensor Test");
// Initialize the sensor
if (!aqi.begin_I2C()) {
Serial.println("Could not find PM 2.5 sensor!");
while (1) delay(10);
}
}
void loop() {
PM25_AQI_Data data;
// Read data from the sensor
if (!aqi.read(&data)) {
Serial.println("Could not read from AQI");
delay(500); // try again in a bit!
return;
}
// Print out the data
Serial.println("PM 1.0: " + String(data.pm10_standard));
Serial.println("PM 2.5: " + String(data.pm25_standard));
Serial.println("PM 10: " + String(data.pm100_standard));
Serial.println();
delay(1000); // Wait a second before the next reading
}
Note: This example assumes you have installed the Adafruit_PM25AQI
library. The code initializes the sensor and reads PM1.0, PM2.5, and PM10 values, outputting them to the serial monitor. Ensure that your Arduino IDE is configured with the correct board and port selected before uploading the code.