Air quality sensor is use to measure the concentration of pollutant in the air.
It have the different component:
Voltage Comparator: Voltage Comparator is a device which compares two voltages which are reference voltage and input voltage.
Potentiometer: It is a three terminal variable resistor.
VCC: This pin is used to power the sensor. (5V DC supply).
Ground: This pin is used to connect the sensor to the ground.
D0 (Digital Output): This pin is used to get the digital output from the sensor, by setting the proper threshold by potentiometer.
A0 (Analog Output): This pin is used for 0 to 5V analog voltage, which is based on the intensity of the gas.
Visual illustration of Air Quality Sensor:
