Theoretically, it would be possible to build a mechanical nose to analyze the surrounding air and a machine to release a cocktail of chemicals to neutralize the detected smells.