   Serial.println("No NTP Response\n");
   return 0; // return 0 if unable to get the time
 }
-

  relayStatus = status;
}

void printWifiStatus() {
  // print the SSID of the network you're attached to:
  Serial.print("SSID: ");
  Serial.println(WiFi.SSID());

  //==================================================
  Serial.println("Checking hardware");
  // check for the presence of the shield:
  if (WiFi.status() == WL_NO_SHIELD)
  {
    Serial.println("Wi-Fi shield not found");
    //loop forever
    while (true)
      ;
  }

  if (!rtc.begin())
  {
    Serial.println("RTC board not found");
    //loop forever
    while (true)
      ;
  }

  //Has the RTC board been initialized?
  if (!rtc.initialized())
  {
    //RTC hasn't been initialized, so it has no time/date value
    Serial.println("RTC is not initialized");
    //The following line sets the RTC to the date & time this sketch was compiled
    //This assumes initializing the RTC immediately after compile, which you would
    //do when you flash the firmware on the device.
    rtc.adjust(DateTime(F(__DATE__), F(__TIME__)));
  }
  else
  {
    Serial.println("RTC is initialized");
  }

