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

Hmmm not sure if I understand it.....
Do you mean that the "val=EEPROM.get(addr);" is wrong ?

I am supposed to read back the tank height that I write into "addr", is this the problem?

I am just new to programming so I am trying to understand more programming jargon......

Thank you