This commit is contained in:
Filip Rojek 2021-07-26 22:37:34 +02:00
parent 3d20bd1a78
commit a983c98b15

View File

@ -156,6 +156,7 @@ void loop()
{ {
if(isOpen == false) if(isOpen == false)
{ {
Serial.println("cas otevira");
relayOn(relay4); relayOn(relay4);
} }
} }
@ -163,6 +164,7 @@ void loop()
{ {
if(isOpen == true) if(isOpen == true)
{ {
Serial.println("cas zavira");
relayOn(relay1); relayOn(relay1);
} }
} }
@ -171,13 +173,15 @@ void loop()
// rain actions // rain actions
if(digitalRead(rain) != HIGH) if(digitalRead(rain) != HIGH)
{ {
Serial.println("voda zavira");
relayOn(relay1, true); relayOn(relay1, true);
} }
// wind actions // wind actions
if (digitalRead(wind) == HIGH) if (digitalRead(wind) == HIGH)
{ {
relayOn(relay1, true); Serial.println("vitr zavira");
//relayOn(relay1, true);
} }
else else
{ {