i have a statement that only semi works
if (bluebuttonState, 0)
{
if (h < 80)
{
digitalWrite(humidPin, HIGH);
}
else
{
digitalWrite(humidPin, LOW);
}
}
else if (h < 55)
{
digitalWrite(humidPin, HIGH);
}
else
{
digitalWrite(humidPin, LOW);
}
when H falls below 55, it sets humidPIN to HIGH, just like it should, however when bluebuttonState changes ( i verified its changing via a serialprint) it the humid pin still goes LOW when h exceeds 54
its a simple statement, now sure why it doesnt work