There are compounds known as olfactory indicators that smell differently in acidic and basic solutions.
By using a procedure called olfactory titration, these types of indicators are employed in laboratories to determine whether a given solution is basic or acidic.
Examples of olfactory indicators
Vanilla extract and onion are two examples of olfactory indicators.