21
Recommended Leak Detector
(lemmy.world)
Home Assistant is open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server. Available for free at home-assistant.io
an esp8266 (or esp32 if you have on laying around) and a long wire. cut that in half, remove the insulation from the ends, wire one to ground and one to any output pin on the esp. detect when the pin gets shorted (basically a button activated by water). use esphome and the button input.
Probably need to look for less than a short. Water is conductive but not THAT conductive.