These are the nociceptors. These nerves are the slowest to adapt to changes, which is a positive because there is likely no evolutionary advantage to not detecting a painful stimulus. Having receptors that selectively detect pain and nothing else helps an organism to understand what stimuli to avoid.