How to use EEPROM with servo?

That is better than reading the data before checking if data is available.

Do yourself a favor and look at the serial input basics tutorial.