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

Still it does not save my previous tank height. As what I have found, I tried to use EEPROM.begin(512) but it still does not work.