The skin has receptors for both pain (nociceptors) and the temperature (baroreceptor) to send signals to the brain they need the adequate stimulus. The more stimulus they receive the higher the frequency of that signal. In this case your skin will feel the heat and know these receptors frequency is very high and your body knows it is in pain. Pain is subject and these receptors have a threshold
Latest Answers