PEORIA, Ill.—Terry Whitehead's lab here is stocked with glass boiling flasks, Bunsen burners—and cans of extra-strength air freshener.

The microbiologist for the U.S. Department of Agriculture works with pig manure in a quest for something that has largely eluded scientists and entrepreneurs: an affordable way to clear the air in farm country.

In...