Here is an example using the adjective "smelly":
"The garbage was so smelly that we had to hold our noses as we walked past it."
You could also use the adjective "aromatic" or "fragrant" to describe a pleasant smell:
"The bakery had a fragrant aroma of freshly baked bread."