There’s this stuff to cover larger areas: https://www.aliexpress.com/item/4000041803534.html
If you are into DIY it is easy enough to make your own leak sensors with ESPHome: Wifi Water Leak Detector
Though now that I have a robust Zigbee network I would just use Aqara leak sensors. There are some pretty cheap Chinese zigbee valve actuators on Aliexpres too.