Hey guys! Newbie here
I'm trying to create a program to control air quality.
I use this tutorial: Link
It works so far.
Now, I want to install a relay. It should switch pin2 at 700ppm. (co2 unit)
I tried it with the function:
...
void loop()
{
.......Â
delay(1000);
if (ppm > 700);
digitalWrite(2, HIGH);
}
But it does not switch...
What am I not doing right?
Many thanks in advance for any suggestion.