Question: what is the best way to get smells out of carpet?
Answer: Move your furniture: Clear any furniture off the carpet to access the whole surface area. ... 
Add the baking soda: Sprinkle baking soda liberally all over the carpet —either right from the box or using a fine-mesh sieve. ... 
Let it sit: Wait a few hours or ideally overnight for the baking soda to absorb the odors.