Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Note that when sensor are power up they need about 1 minute to settle, in this time
the heater heats up the sensor.
We experimented with Isopropile alcohol, Benzine, Lighter Gas, human breath of two
different persons ??
#include <DHT.h>
#include "MQ135.h"
#define PIN_MQ135 A3
MQ135 mq135_sensor = MQ135(PIN_MQ135);
void setup() {
Serial.begin(9600);
}
void loop() {
float humidity = dht.readHumidity();
float temperature = dht.readTemperature();
if (isnan(humidity) || isnan(temperature))
{
Serial.println("Failed to read from DHT sensor!");
return;
}