How to save sensor value in EEPROM? (ESP8266)?

The above comments explained it very clear. I suggest you google EEPROM. get and EEPROM. put. There are plenty of examples out there