The first component involved when you smell cookies baking and respond by walking toward the kitchen is the dendrites in your sensory neurons.
When you smell the cookies, the receptors in your olfactory sensory neurons detect the scent, and the dendrites of those sensory neurons are responsible for receiving that sensory input.