Here are some tips for cleaning carpets:
Vacuum
Use a vacuum with strong suction to remove dust and dirt. Vacuum often, and move furniture and other items from the carpet.
Spot treat
Treat stains as soon as possible. For liquid spills, blot with paper towels or a cloth. Use a carpet stain remover.
Use a pre-spray solution
Mix a pre-spray solution according to safety standards and spray entry mats. Leave the solution on until it dries.
Use a carpet shampooing machine
Vacuum the whole room before using the machine to prevent dirt from falling on the wet carpet.
Use a clothes steamer or steam mop
Sprinkle the carpet with a mixture of baking soda and salt, then use steam to dampen the mixture. Scrub the mixture into the fibers, then absorb the loosened soil with towels or microfiber cloths.
Use a deodorizer
Use a multi-surface cleaner and deodorizer to neutralize odors.
Let it dry
Allow the carpet to dry thoroughly before replacing furniture. Ensure adequate ventilation in the room.