Nociceptor:

receptor specialized for the detection of harmful (e.g. painful) stimuli.