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

One obvious problem is that tankheight and val are declared as floats but EEPROM.write() writes a single byte and EEPROM.read() reads a a single byte

Take a look at EEPROM.put() and EEPROM.get()