Thanks. I got your point and updated the code to change the data type to byte.
OK. So, there are three parts to your problem.
- Reading the data from the serial port.
- Storing the data in EEPROM.
- Retrieving the data from EEPROM.
Having changed the data type, the last two will be much easier.
Which part(s) do you need help with?