Anlog comparator and digital input

Hi

I am new at this how do I make it so the comparator and a digital input needs to be true before setting the output?

if(tempc > 200)
{
digitalWrite(ventil,1);
delay(5000);
}

Br Kasper

if(tempc > 200 and digitalRead(digitalInputPinOfYourChoice) == HIGH)

Start here

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.