My idea would be with the Door/Window sensor as they are inexpensive (normally US$20 at X-10, bit right now they are giving an instant $20 rebate so all you pay is shipping).
See the following link for a water sensor to use with above, and search the site for many others:
[Link: smarthome.com]-CL