   Serial.end();
   isConnected = false;
   disconnectDone = currentMillis;
+  delay(5000); // Wait 5 seconds before reconnecting
   Serial.begin(baudRate);
   serial_rx_buffer_disconnect[0] = 0x0B;
   serial_rx_buffer_disconnect[11] = 0x0B;

  lastPongOut = currentMillis;
  Serial.flush();
  /*
  Serial.print("PONG = ");
  Serial.println(currentMillis);
  Serial.flush();
  Serial.println("PING RECEIVED");
  Serial.println("");
  Serial.print("LAST PING TIME IN = ");
  Serial.println(lastPingIn);
  Serial.print("LAST PONG TIME IN = ");
  Serial.println(lastPongIn);
  Serial.print("LAST PING TIME OUT = ");
  Serial.println(lastPingOut);
  Serial.print("LAST PONG TIME OUT = ");
  Serial.println(lastPongOut);
  Serial.print("PING TIME OUT = ");
  Serial.println(pingTimeOut);
  Serial.print("PONG TIME OUT = ");
  Serial.println(pongTimeOut);
  Serial.print("PING TIME IN = ");
  Serial.println(pingTimeIn);
  Serial.print("PONG TIME IN= ");
  Serial.println(pongTimeIn);
  Serial.flush();
  */
  sentPong = false;
}

      for (serial_rx_buffer_counter = 0; serial_rx_buffer_counter < sizeof(serial_rx_buffer_pong_in); serial_rx_buffer_counter++) {
        //  Pass Serial Buffer to Pong Input Buffer
        serial_rx_buffer_pong_in[serial_rx_buffer_counter] = serial_rx_buffer[serial_rx_buffer_counter];
      }
      getPong();
    }
    else if ((serial_rx_buffer[0] == 0xA0) && (serial_rx_buffer[11] == 0xA0)) {
