Fixed calibration calculation issue

This commit is contained in:
miguel5612
2020-03-29 15:51:54 -05:00
parent fce223342f
commit 80af739dfd
18 changed files with 18 additions and 18 deletions

View File

@ -58,7 +58,7 @@ void setup() {
// Acknowledgements: https://jayconsystems.com/blog/understanding-a-gas-sensor
Serial.print("Calibrating please wait.");
float calcR0 = 0;
for(int i = 0; i<=10; i ++)
for(int i = 1; i<=10; i ++)
{
MQ303.update(); // Update data, the arduino will be read the voltage on the analog pin
calcR0 += MQ303.calibrate(RatioMQ303CleanAir);