Water/flood sensor?

I believe so. See the bulging at the end of red arrow? Not exactly sure how it works. I wonder what's in the float to trigger the when to turn on and off.