only getting value 255 from EEPROM

Please post your code here using code tags as advised in read this before posting a programming question