Water bug, and... *LINK*
Grant in Iowa
The industrial world extensively uses "Water bug" products. The link below has the basic unit. You can add an annunciator and/ or interface it with an alarm system. If you are good with electronics, you could even integrate it with a computer and have it send a text or email when it trips.
Also, there are check balls available for floor drains. These screw in to the 2" drain, or on modern PVC drains can be installed in the drain without threads. Search on "floor drain check valve" for more info.
We used to live in a home that had lots of ground water, so we had several systems in place, including a home standby generator. Maintenance and redundancies are key to keeping the flood from happening.
One simple thing one can do if high water is forecast is to simply insert a 2' length of PVC in to the drain when it isn't being used. This will effectively block water from coming up through the drain in a flood. Keep in mind that this approach should not be left alone long, as it also prevents water from a burst pipe or water heater from draining.
FWIW,
Grant in Iowa
water bug