Aqara leak sensor - how would it hold up underneath water?

This project immediately popped into my head:

Can certainly be made even prettier with a thin metal rod and a small enclosure.