while (!Serial && millis() < 5000); // wait for serial port to connect