PM 2.5 GP2Y1014AU0 dust sensor manufactured by SHARP, is used to identify the concentration of dust in the air.
The principle of operation of GP2Y1014AU0 is based on the infrared emission LED integrated inside the dust sensor, when there is dust, it will be refracted, reducing the intensity of infrared rays ==> voltage changes.
SPECIFICATIONS:
Connection diagram of dust sensor with Arduino:
Library for GP2Y1014AU0 dust sensor: SharpGP2Y10.h
Code for GP2Y1014AU0 dust sensor:
#include "SharpGP2Y10.h"
//DUST Sensor
int voPin = A0;
int ledPin = 13;
float dustDensity = 0;
SharpGP2Y10 dustSensor(voPin, ledPin);
void setup()
{
Serial.begin(9600);
}
void loop()
{
dustDensity = dustSensor.getDustDensity();
Serial.println(dustDensity);
delay(1000);
}
update
...