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

void run_lightcmd()
{
  int topbuttonstatus =  ! digitalRead(TOPBUTTONPIN);
  relaystatus = topbuttonstatus ;
}

void motion_detection()

    Serial.println("Transmit NTP Request called");
  }
  sendNTPpacket(time_server);
  delay(3000);
  uint32_t beginWait = millis();
  while (millis() - beginWait < 1500) {
    int size = udp.parsePacket();
