Water/flood sensor?

In my case the basement flood. We had rain yesterday and the pump (which I just purchased 3 years) failed. Had almost 2 feet of water in my basement swimming pool.

The pump before that failed not because of the pump, but the float switch. I opened it up to find one of the caps had exploded.