Allergy vs infection
If you are allergic to mold (a common allergy), when you encounter this in the air, it may make you sneeze.
You may then notice the smell.
Sometimes a sinus infection can give you a foul smell. If you have symptoms of facial pain
/pressure, discolored drainage, see your doctor for treatment.