Ayuh,..... I run bilge pumps through a float switch,.....
Years ago, I bought a rule automatic bilge pump, that was 'puter controlled,.... turned out to be trash in my book,....
It would turn on every few minutes, if it "Sensed" water it pumped it out, but the time it spent "Sensing" ran...