I have a kit to detect and shut off water
One of these (unused, new)
https://www.amazon.com/gp/product/B09NBT4Q6W/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&th=1
Two valves (used)
https://www.amazon.com/gp/product/B07S9YXSC6/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&psc=1