The ability to detect scents or odors, such as the function of OLFACTORY RECEPTOR NEURONS.