a temperature sensor consists of a potential divider made using a thermistor and variable resistor
when the temperature of the thermistor is constant it has constant resistance, so you can change the potential difference across it by adjusting the variable resistor
when the temperature of the thermistor changes, its resistance changes, so the potential difference across it changes