For those following this thread - try the solutions offered at the following thread. ESPHome water level sensor