arduino stop send data(print) to serial monitor

PaulS:

i dont use all memory of arduino. i looked that

You are using more than you need to.

Serial.print(F("Found chip PN5"));

Do the same with all the other literal strings.

And what Hackscribble said.

when i load the code in arduino, i take a message that say that the code's size is 21000bytes, when the max is 32000bytes.