Read and save IMEI from serial port

You apparently need to read 64 characters.
A for loop will run as quickly as possible, through all non-blocking iterations.
So, a for loop is not what you want.

You need to loop until you have received 64 characters.
I wrote a clue there.