Hello!
The nerves that detect stimuli and carry information to the sensory cortices are called sensory nerves or afferent nerves. These nerves are responsible for transmitting information from sensory receptors in the body to the central nervous system (CNS), where the information is processed and interpreted by the brain.
Hope this Helps