Getting code to get EEPROM number

septillion:
Snippets R Us

And you do know the life of EEPROM is limited? You can only write is 100.000 (100k) times. If you write every second you can write for a little over 1 day and then your done.

OP would have to lean on that switch all day to wear out the EEPROM in one day.

OP: You can READ from EEPROM as many times as you like without concern of wearing it out. So, ANYWHERE you want to know the value in EEPROM, read it.