Afferent neurons, also known as sensory neurons, are responsible for transmitting sensory information from the peripheral nervous system to the central nervous system. They play a crucial role in the body's ability to perceive and respond to environmental stimuli, forming the initial step in the sensory processing pathway.