for a water detect event you can use the motion or door sensor example