1 cup Baking Soda
15-20 drops of essential oils of your choice
Mix well and place in a glass covered container (quart jar works well) overnight so that the oil can be absorbed.
Sprinkle over your carpet the next day, and then vacuum the powder up.
Citrus oils in the living area is nice, as is Lavender with Sweet Marjoram for the bedrooms.