only getting value 255 from EEPROM

EEPROM.length() ?? Not heard of that.