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()
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()