I am using a PIC32MX440F256H (PIC32-PINGUINO-OTG) and I am working with a "SainSmart MQ135 Sensor Hazardous Gas Detection Module Arduino".
This sensor can get back data of air quality, it can detect many gases ( NH3, NOx, alcohol, benzene, smoke and CO2)
I would like to know if it's possible to get back values of each one using datasheets of this sensor for example ? Or, I just can calibrate each of these gases with datasheets ?
This is the code I'm using below. Enclosed results in Putty terminal.
// CDC.begin(9600); // sets the serial port to 9600
sensorValue = analogRead(A0); // read analog input pin 0
CDC.printf("%d \r\n", sensorValue); // prints the value read
delay(100); // wait 100ms for next reading