Getting code to get EEPROM number

OP made me look like a fool by adding code and deleting posts... No clue there was a switch before.