MQ131.update();// Update data, the arduino will be read the voltage on the analog pin
calcR0+=MQ131.calibrate(RatioMQ131CleanAir);
Serial.print(".");
}
MQ131.setR0(calcR0/10);
Serial.println(" done!.");
if(isinf(calcR0)){Serial.println("Warning: Conection issue founded, R0 is infite (Open circuit detected) please check your wiring and supply");while(1);}
if(calcR0==0){Serial.println("Warning: Conection issue founded, R0 is zero (Analog pin with short circuit to ground) please check your wiring and supply");while(1);}
MQ135.update();// Update data, the arduino will be read the voltage on the analog pin
calcR0+=MQ135.calibrate(RatioMQ135CleanAir);
Serial.print(".");
}
MQ135.setR0(calcR0/10);
Serial.println(" done!.");
if(isinf(calcR0)){Serial.println("Warning: Conection issue founded, R0 is infite (Open circuit detected) please check your wiring and supply");while(1);}
if(calcR0==0){Serial.println("Warning: Conection issue founded, R0 is zero (Analog pin with short circuit to ground) please check your wiring and supply");while(1);}
MQ2.update();// Update data, the arduino will be read the voltage on the analog pin
calcR0+=MQ2.calibrate(RatioMQ2CleanAir);
Serial.print(".");
}
MQ2.setR0(calcR0/10);
Serial.println(" done!.");
if(isinf(calcR0)){Serial.println("Warning: Conection issue founded, R0 is infite (Open circuit detected) please check your wiring and supply");while(1);}
if(calcR0==0){Serial.println("Warning: Conection issue founded, R0 is zero (Analog pin with short circuit to ground) please check your wiring and supply");while(1);}
MQ3.update();// Update data, the arduino will be read the voltage on the analog pin
calcR0+=MQ3.calibrate(RatioMQ3CleanAir);
Serial.print(".");
}
MQ3.setR0(calcR0/10);
Serial.println(" done!.");
if(isinf(calcR0)){Serial.println("Warning: Conection issue founded, R0 is infite (Open circuit detected) please check your wiring and supply");while(1);}
if(calcR0==0){Serial.println("Warning: Conection issue founded, R0 is zero (Analog pin with short circuit to ground) please check your wiring and supply");while(1);}
MQ303.update();// Update data, the arduino will be read the voltage on the analog pin
calcR0+=MQ303.calibrate(RatioMQ303CleanAir);
Serial.print(".");
}
MQ303.setR0(calcR0/10);
Serial.println(" done!.");
if(isinf(calcR0)){Serial.println("Warning: Conection issue founded, R0 is infite (Open circuit detected) please check your wiring and supply");while(1);}
if(calcR0==0){Serial.println("Warning: Conection issue founded, R0 is zero (Analog pin with short circuit to ground) please check your wiring and supply");while(1);}
MQ309.update();// Update data, the arduino will be read the voltage on the analog pin
calcR0+=MQ309.calibrate(RatioMQ309CleanAir);
Serial.print(".");
}
MQ309.setR0(calcR0/10);
Serial.println(" done!.");
if(isinf(calcR0)){Serial.println("Warning: Conection issue founded, R0 is infite (Open circuit detected) please check your wiring and supply");while(1);}
if(calcR0==0){Serial.println("Warning: Conection issue founded, R0 is zero (Analog pin with short circuit to ground) please check your wiring and supply");while(1);}
MQ4.update();// Update data, the arduino will be read the voltage on the analog pin
calcR0+=MQ4.calibrate(RatioMQ4CleanAir);
Serial.print(".");
}
MQ4.setR0(calcR0/10);
Serial.println(" done!.");
if(isinf(calcR0)){Serial.println("Warning: Conection issue founded, R0 is infite (Open circuit detected) please check your wiring and supply");while(1);}
if(calcR0==0){Serial.println("Warning: Conection issue founded, R0 is zero (Analog pin with short circuit to ground) please check your wiring and supply");while(1);}
MQ5.update();// Update data, the arduino will be read the voltage on the analog pin
calcR0+=MQ5.calibrate(RatioMQ5CleanAir);
Serial.print(".");
}
MQ5.setR0(calcR0/10);
Serial.println(" done!.");
if(isinf(calcR0)){Serial.println("Warning: Conection issue founded, R0 is infite (Open circuit detected) please check your wiring and supply");while(1);}
if(calcR0==0){Serial.println("Warning: Conection issue founded, R0 is zero (Analog pin with short circuit to ground) please check your wiring and supply");while(1);}
MQ6.update();// Update data, the arduino will be read the voltage on the analog pin
calcR0+=MQ6.calibrate(RatioMQ6CleanAir);
Serial.print(".");
}
MQ6.setR0(calcR0/10);
Serial.println(" done!.");
if(isinf(calcR0)){Serial.println("Warning: Conection issue founded, R0 is infite (Open circuit detected) please check your wiring and supply");while(1);}
if(calcR0==0){Serial.println("Warning: Conection issue founded, R0 is zero (Analog pin with short circuit to ground) please check your wiring and supply");while(1);}
MQ7.update();// Update data, the arduino will be read the voltage on the analog pin
calcR0+=MQ7.calibrate(RatioMQ7CleanAir);
Serial.print(".");
}
MQ7.setR0(calcR0/10);
Serial.println(" done!.");
if(isinf(calcR0)){Serial.println("Warning: Conection issue founded, R0 is infite (Open circuit detected) please check your wiring and supply");while(1);}
if(calcR0==0){Serial.println("Warning: Conection issue founded, R0 is zero (Analog pin with short circuit to ground) please check your wiring and supply");while(1);}
MQ8.update();// Update data, the arduino will be read the voltage on the analog pin
calcR0+=MQ8.calibrate(RatioMQ8CleanAir);
Serial.print(".");
}
MQ8.setR0(calcR0/10);
Serial.println(" done!.");
if(isinf(calcR0)){Serial.println("Warning: Conection issue founded, R0 is infite (Open circuit detected) please check your wiring and supply");while(1);}
if(calcR0==0){Serial.println("Warning: Conection issue founded, R0 is zero (Analog pin with short circuit to ground) please check your wiring and supply");while(1);}
MQ9.update();// Update data, the arduino will be read the voltage on the analog pin
calcR0+=MQ9.calibrate(RatioMQ9CleanAir);
Serial.print(".");
}
MQ9.setR0(calcR0/10);
Serial.println(" done!.");
if(isinf(calcR0)){Serial.println("Warning: Conection issue founded, R0 is infite (Open circuit detected) please check your wiring and supply");while(1);}
if(calcR0==0){Serial.println("Warning: Conection issue founded, R0 is zero (Analog pin with short circuit to ground) please check your wiring and supply");while(1);}