Neurons play a crucial role in sensory function by transmitting the electrical signals generated by sensory receptors to the brain. Sensory neurons are afferent neurons that carry information from the periphery to the central nervous system. They have specialized structures such as dendrites, which receive signals, and axons, which transmit these signals over long distances.