Thermal sensors work by converting temperature changes into electrical signals through a process called transduction. When a temperature change is detected, ion channels in the sensor's cell membrane open or close, leading to a change in the membrane potential. This change generates an action potential that is transmitted to the central nervous system, where it is interpreted as a sensation of temperature.