Afferent neurons, also known as sensory neurons, are responsible for transmitting sensory information from the body's periphery to the central nervous system (CNS). They play a crucial role in allowing the CNS to receive and process sensory stimuli, such as touch, pain, temperature, and proprioception, enabling the body to respond appropriately to its environment.