I also have a tube running from my skimmer cup to a 5 gallon bucket. There is a simple shut off switch in the bucket that turns off the pump feed for the skimmer if the bucket fills. I built that shut off switch by just putting two wires from the GFCI the pump is plugged into inside the bucket near the top. One wire is in series with a small light bulb (for safety) The wire tips are encased in a small container. When the water contacts the wire tips, it shuts off the GFCI stopping the pump.
I also have such a GFCI set up under my hot water heater for my home. If it leaks, it shuts off an electric valve that feeds the heater.
I have these things all over my house to prevent leaks or send an alarm. Cost $12.00
(stop making fun of my phone. it's from the 70s)