Refer below Tutorials ESP8266 EEPROM - Visit for simillar projects at https://microdigisoft.com
Tutorial 1:Using the EEPROM with the ESP8266 Microcontrollers (NodeMCU) Module---https://microdigisoft.com/using-the-eeprom-with-the-esp8266-microcontrollers-nodemcu/