When the flood detector is triggered, you should immediately turn off the water supply and remove any valuables or electronics from the affected area. Then, call a plumber or water damage restoration service to assess the damage and fix the issue.