b. pain
Pain is one of the sensory functions that receptors in the skin can detect.
Others are:
Touch
Sight
Taste
Odor
Hearing
These sensory receptors receive information and deposit them to sensory neurons to pass to the interneurons which then interprets the information and process a proper response and sends it to the motor neuron.