System and method for preventing condensate drain pan flooding, detecting condensate water overflow and shutting off an air conditioner or heat pump to prevent further flooding