I want to create a push button on Blynk to control my device via Relay when the ON button is pressed, the machine will work, OFF then stops. but i’m having problem is when the button is ON the device i will run and it will include the condition set in this command ring i don’t want that to happen i just want this code to run when the button is in OFF mode
void eval_readings ()
{
if(temp<settemp)
{
digitalWrite(RELAYlamp, HIGH);
}
else
{
digitalWrite(RELAYlamp, LOW);
}
if(hum<sethum)
{
digitalWrite(RELAYpump, HIGH);
}
else
{
digitalWrite(RELAYpump, LOW);
}
}