Changed variable types

This commit is contained in:
miguel5612
2020-03-27 22:54:05 -05:00
parent 9a1974033e
commit 3d1bb90e38
17 changed files with 145 additions and 256 deletions

View File

@ -60,7 +60,7 @@ void setup() {
// This routine not need to execute to every restart, you can load your R0 if you know the value
// Acknowledgements: https://jayconsystems.com/blog/understanding-a-gas-sensor
Serial.print("Calibrating please wait.");
int calcR0 = 0;
float calcR0 = 0;
for(int i = 0; i<=10; i ++)
{
MQ135.update(); // Update data, the arduino will be read the voltage on the analog pin