To deodorize carpets, blend several drops of your favorite essential oil (found in most health food stores) to 1/2 cup of baking soda. Sprinkle on the carpet, let set for 10 minutes then vacuum up.
Lemon and/or lavender are good choices - but you can try any essential oil that you like. You are only limited by your imagination. :)