if there is a mechanism behind it, its probarbly the warmth.

im sure snakes can feel pain, when its in their own body. but telepathic remote pain-sensing? no, thats really a reach.