diff --git a/examples/LinearVsExponential/LinearVsExponential.ino b/examples/LinearVsExponential/LinearVsExponential.ino index 03cb9ed..6de24f4 100644 --- a/examples/LinearVsExponential/LinearVsExponential.ino +++ b/examples/LinearVsExponential/LinearVsExponential.ino @@ -48,7 +48,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 ++) { MQ4.update(); // Update data, the arduino will be read the voltage on the analog pin calcR0 += MQ4.calibrate(RatioMQ4CleanAir); diff --git a/examples/MQ-131/MQ-131.ino b/examples/MQ-131/MQ-131.ino index 86cc02f..963846e 100644 --- a/examples/MQ-131/MQ-131.ino +++ b/examples/MQ-131/MQ-131.ino @@ -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 ++) { MQ131.update(); // Update data, the arduino will be read the voltage on the analog pin calcR0 += MQ131.calibrate(RatioMQ131CleanAir); diff --git a/examples/MQ-135/MQ-135.ino b/examples/MQ-135/MQ-135.ino index 9dd7017..380c8a8 100644 --- a/examples/MQ-135/MQ-135.ino +++ b/examples/MQ-135/MQ-135.ino @@ -61,7 +61,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 ++) { MQ135.update(); // Update data, the arduino will be read the voltage on the analog pin calcR0 += MQ135.calibrate(RatioMQ135CleanAir); diff --git a/examples/MQ-2/MQ-2.ino b/examples/MQ-2/MQ-2.ino index 692a3bd..e14e561 100644 --- a/examples/MQ-2/MQ-2.ino +++ b/examples/MQ-2/MQ-2.ino @@ -57,7 +57,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 ++) { MQ2.update(); // Update data, the arduino will be read the voltage on the analog pin calcR0 += MQ2.calibrate(RatioMQ2CleanAir); diff --git a/examples/MQ-3/MQ-3.ino b/examples/MQ-3/MQ-3.ino index 3800a93..fad19c7 100644 --- a/examples/MQ-3/MQ-3.ino +++ b/examples/MQ-3/MQ-3.ino @@ -60,7 +60,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 ++) { MQ3.update(); // Update data, the arduino will be read the voltage on the analog pin calcR0 += MQ3.calibrate(RatioMQ3CleanAir); diff --git a/examples/MQ-303A/MQ303.ino b/examples/MQ-303A/MQ303.ino index e3f84d8..fc0e0d8 100644 --- a/examples/MQ-303A/MQ303.ino +++ b/examples/MQ-303A/MQ303.ino @@ -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); diff --git a/examples/MQ-309A/MQ-309.ino b/examples/MQ-309A/MQ-309.ino index 04f25fd..1966ada 100644 --- a/examples/MQ-309A/MQ-309.ino +++ b/examples/MQ-309A/MQ-309.ino @@ -59,7 +59,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 ++) { MQ309.update(); // Update data, the arduino will be read the voltage on the analog pin calcR0 += MQ309.calibrate(RatioMQ309CleanAir); diff --git a/examples/MQ-4-ALL/MQ-4-ALL.ino b/examples/MQ-4-ALL/MQ-4-ALL.ino index 8279a61..d969af4 100644 --- a/examples/MQ-4-ALL/MQ-4-ALL.ino +++ b/examples/MQ-4-ALL/MQ-4-ALL.ino @@ -50,7 +50,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 ++) { MQ4.update(); // Update data, the arduino will be read the voltage on the analog pin calcR0 += MQ4.calibrate(RatioMQ4CleanAir); diff --git a/examples/MQ-4-LINEAR/MQ-4-LINEAR.ino b/examples/MQ-4-LINEAR/MQ-4-LINEAR.ino index 3e3e704..4210384 100644 --- a/examples/MQ-4-LINEAR/MQ-4-LINEAR.ino +++ b/examples/MQ-4-LINEAR/MQ-4-LINEAR.ino @@ -50,7 +50,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 ++) { MQ4.update(); // Update data, the arduino will be read the voltage on the analog pin calcR0 += MQ4.calibrate(RatioMQ4CleanAir); diff --git a/examples/MQ-4/MQ-4.ino b/examples/MQ-4/MQ-4.ino index 7481266..b708157 100644 --- a/examples/MQ-4/MQ-4.ino +++ b/examples/MQ-4/MQ-4.ino @@ -60,7 +60,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 ++) { MQ4.update(); // Update data, the arduino will be read the voltage on the analog pin calcR0 += MQ4.calibrate(RatioMQ4CleanAir); diff --git a/examples/MQ-5/MQ-5.ino b/examples/MQ-5/MQ-5.ino index 4118960..b69ac85 100644 --- a/examples/MQ-5/MQ-5.ino +++ b/examples/MQ-5/MQ-5.ino @@ -59,7 +59,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 ++) { MQ5.update(); // Update data, the arduino will be read the voltage on the analog pin calcR0 += MQ5.calibrate(RatioMQ5CleanAir); diff --git a/examples/MQ-6/MQ-6.ino b/examples/MQ-6/MQ-6.ino index cbc2476..da8b2c6 100644 --- a/examples/MQ-6/MQ-6.ino +++ b/examples/MQ-6/MQ-6.ino @@ -59,7 +59,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 ++) { MQ6.update(); // Update data, the arduino will be read the voltage on the analog pin calcR0 += MQ6.calibrate(RatioMQ6CleanAir); diff --git a/examples/MQ-7/MQ-7.ino b/examples/MQ-7/MQ-7.ino index f57899d..7627e24 100644 --- a/examples/MQ-7/MQ-7.ino +++ b/examples/MQ-7/MQ-7.ino @@ -60,7 +60,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 ++) { MQ7.update(); // Update data, the arduino will be read the voltage on the analog pin calcR0 += MQ7.calibrate(RatioMQ7CleanAir); diff --git a/examples/MQ-8/MQ-8.ino b/examples/MQ-8/MQ-8.ino index 1a3a21a..f60ec3a 100644 --- a/examples/MQ-8/MQ-8.ino +++ b/examples/MQ-8/MQ-8.ino @@ -60,7 +60,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 ++) { MQ8.update(); // Update data, the arduino will be read the voltage on the analog pin calcR0 += MQ8.calibrate(RatioMQ8CleanAir); diff --git a/examples/MQ-9-ALL/MQ-9-ALL.ino b/examples/MQ-9-ALL/MQ-9-ALL.ino index 0a6a47f..e13c5aa 100644 --- a/examples/MQ-9-ALL/MQ-9-ALL.ino +++ b/examples/MQ-9-ALL/MQ-9-ALL.ino @@ -49,7 +49,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 ++) { MQ9.update(); // Update data, the arduino will be read the voltage on the analog pin calcR0 += MQ9.calibrate(RatioMQ9CleanAir); diff --git a/examples/MQ-9/MQ-9.ino b/examples/MQ-9/MQ-9.ino index 9c58120..2452bbe 100644 --- a/examples/MQ-9/MQ-9.ino +++ b/examples/MQ-9/MQ-9.ino @@ -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 ++) { MQ9.update(); // Update data, the arduino will be read the voltage on the analog pin calcR0 += MQ9.calibrate(RatioMQ9CleanAir); diff --git a/examples/MQ-Board/MQ-Board.ino b/examples/MQ-Board/MQ-Board.ino index 645dfba..668e46c 100644 --- a/examples/MQ-Board/MQ-Board.ino +++ b/examples/MQ-Board/MQ-Board.ino @@ -109,7 +109,7 @@ void setup() { MQ7calcR0 = 0, MQ8calcR0 = 0, MQ9calcR0 = 0; - for(int i = 0; i<=20; i ++) + for(int i = 1; i<=10; i ++) { //Update the voltage lectures MQ2.update(); diff --git a/examples/smokeDetector/smokeDetector.ino b/examples/smokeDetector/smokeDetector.ino index ba37b91..9344111 100644 --- a/examples/smokeDetector/smokeDetector.ino +++ b/examples/smokeDetector/smokeDetector.ino @@ -57,7 +57,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 ++) { MQ4.update(); // Update data, the arduino will be read the voltage on the analog pin calcR0 += MQ4.calibrate(RatioMQ4CleanAir);