         }
         nextSleep = ONE_HOU_TIME + 137000000;
       }
-      if (rtcStore[2] >= 59) {
+      if (rtcStore[2] >= 60) {
         rtcStore[1] = STATE_HOUSKEEPING;
         system_rtc_mem_write(RTC_BASE, rtcStore, 3);
         nextSleep = 100;

    case STATE_SLEEP_WAKE:
      if (rtcStore[2] < 48) {
        doWork();
        nextSleep = nextSleep + 26000000;

      } else {
        if (connectToInternet()) {

        if (ESP.getVcc() < 2650) {
          subject = "WARNING: Battery LOW - " + subject;
        }

        Serial.println(subject);
        Serial.println(message);
        sendEmail(subject, message);
        disconnectInternet();

        rtcStore[1] = STATE_SLEEP_WAKE;
        if (rtcStore[2] >= 60) {
          rtcStore[2] = 255;
        }

        system_rtc_mem_write(RTC_BASE, rtcStore, 3);
        ESP.deepSleep(nextSleep, WAKE_RFCAL);

      }
      break;
  }
