If your sensor outputs high when it detects water, use a transistor or MOSFET to pull RST low when water is detected, and send a message.
I used that trick to make my emergency food button (a button that orders food when you press it):
https://www.stavros.io/posts/emergency-food-button/
You won't get away with not powering the detector, though, so depending on its power draw it might be moot.