standalone C code to read eeprom data