only getting value 255 from EEPROM