probably chip is running too fast it prints that statement before you have fully established he serial monitor conncetion
try lowering serial speed to 19200 or even 9600
try adding this code, it will wait until the serial monitor connects to proceed
but you would need to remove or disable the function if you are not connected to serial “in the field” because the code will not start if not connected to serial mon (sometimes it will, sometimes not) also you could just add a delay before to give a little time
like delay(5000);
// Open serial communications and wait for port to open:
Serial.begin(19200);
while (!Serial) // wait for serial port to connect.
{//Begin while()
Serial.println("\nSerial Setup…");
}// End while()