     Serial.println(relaystatus);
   }
 
+  relayIsReady = LOW;
   digitalWrite(RELAYPIN, relaystatus);
-  delay(50);
+  //delay(50);
 
   if (DEBUG_PRINT) {
     Serial.print(" => ");

    Serial.println(ssid);
  }

  WiFi.mode(WIFI_STA);
  WiFi.begin(ssid, password);


    if (DEBUG_PRINT) {
      Serial.print(".");
    }
    if (Attempt == 300)
    {
      if (DEBUG_PRINT) {
        Serial.println();
