Troubleshooting Garage Door Opener (GDO) safety sensors
The receiver unit likely shorted out inside from the flooding -- it might be possible to fix it by cleaning the insides thoroughly to get rid of any contamination that'd be causing the short, but it could also be that parts inside it failed.  We'd need some photos of its innards to make that determination, though...