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

I have no clue to change the format of the code, could you guide me please?