Water/flood sensor?

The bilge pump switch I had used a snap action micro switch.

I’ll post some pictures of the sump pump switch so you can see the cap. There’s a relay in there too. And all of this can be under water.