Deployed !
code not an issue with ChatGPT but the supplied analog to digital converter that came with the probe is shite . Completely non stable readings even when not in water !
Quick chat with my best mate and we ordered a different one . With current code worked instantly.
The percentage water remaining seems incorrect ( though the calcs were based off the tank height ) . Rather than bring in and reflash ( didn’t add OTT updates ) - might just frig the number by a multiplier to scale it better in home assistant .Doesn’t need to be especially accurate but reasonable .