The habenula relays external information, such as sight and smell, along with internal states associated with emotion and learning to brain regions that govern adaptive behaviors.