If Statements problem [SOLVED]

Hi All

This is probably really simple, but I can`t work out why its not working.

I built a humidity controller with an RTC, the timing part works great, so at a set time something happens.

I then added in my humidity setting, so if the humidity is low enough and the time is right, it will do something, if the humidity is high even at the right time, it will do nothing, simple really, except its not working :slight_smile:

I have no errors, just don`t know why combining 2 actions results in nothing happening.

Cheers in advance

{


if (h <= 50 && (dt.hour ==10 && dt.minute == 00)){

tft.setCursor (20,200);
  tft.setTextSize (3);
  tft.setTextColor (GREEN,BLACK);
  tft.print ("Mist 1 Started"); 
  digitalWrite(2, LOW);
}  
 else

  if(dt.hour == 10 && dt.minute == 02){
  tft.setCursor (20,200);
  tft.setTextSize (3);
  tft.setTextColor (RED,BLACK);
  tft.print ("Mist 1 Finished"); 
  digitalWrite(2, HIGH);
  }

Actually, its OK guys I found the issue

Please change your post message subject line then to include [SOLVED]

DKWatson:
Please change your post message subject line then to include [SOLVED]

how does one change their subject to solved???

how does one change their subject to solved???

Edit your original post