Carpets that are damp or wet as a result of flooding can lead to mildew and other fungi buildup, which leads to possible health risks for you and your family. It is best to deal with a wet carpet as quickly as possible to stop this from happening. Instead of paying for an expensive company to come in and do the job for you, it can easily be done by using a vacuum specially designed for picking up water and baking soda.
Run a wet vacuum over the wet or damp area of the carpet to bring up as much of the water as possible. Remove as much water as you can until the carpet is only damp and excess water doesn't come up when you press down into the carpet.
Sprinkle a large amount of baking soda over the damp carpet. Depending on the size of the damp carpet, you may need to use more than one canister of baking soda. Let the baking soda sit on the carpet for several hours, up to 24 hours, to allow it ample time to soak up the remaining moisture and odor from the carpet.
Vacuum up the baking soda from the carpet.
Run a large fan or a space heater to help dry the carpet more quickly.