Start your code here /* Testing EEPROMClas ESP32 Flash memory in a multiple user-defined EEPROM class objects. Created for arduino-esp32 on 25 Dec, 2017 by Elochukwu Ifediora (fedy0) converted to nvs by lbernstone - 06/22/2019
After restart or deep_sleep the EEPROM memories are not readable, we cant recover the data.
After looking at this the EEPROM library is deprecated in favor of the Preferences library.
I tried the example at https://github.com/espressif/arduino-esp32/blob/master/libraries/Preferences/examples/StartCounter/StartCounter.ino and it worked perfectly.
My understanding is that ESP32 does not have an EEPROM and the Preferences library is just a wrapper around Flash memory to emulate an EEPROM.
As Steve suggested, use the preferences library instead.
Then, let us know if it solved your problem.