           {
             data_esp.ac_mode = 0;
           }
-          bhaveData = true;
+          btimerFirst = false;
+          bhaveData   = true;
           timerMillis = millis();
         }
       }

    data_mqtt.humidity    = DHT.getHumidity();
  }

  sentMills = timerMillis = millis();
  lcd.clear();
  lcd_redraw();
  attachInterrupt(SQWV_PIN, alm_isr, FALLING);

  if ( receivedpayload == "{\"CHECKING\":\"1\"}")
  {
    String check_payload = "ac status: ";
    if (bac_timer_mode)
    {
      if (data_curr.ac_mode == 0)
      {
        check_payload += "timer:off";
      }
      else
      {
        check_payload += "timer:on";
      }
    }
    else
    {
      if (data_curr.ac_mode == 0)
      {
        check_payload += "off";
      }
      else
      {
        check_payload += "on";
      }      
    }
    check_payload += "\r\n";
    check_payload += "ac temp set : ";
