If you need a temperature sensor but don’t have one at hand, here’s an easy way to create one, using a .. diode ! All what you have to do is to bias the diode with a current around 1 mA, and to measure it’s forward voltage drop.
The forward voltage of a silicon diode varies with about -2 mV / °C. So, basically the diode itself can be used as a temperature sensor. In order to have a good precision, you should perform a calibration by measuring the output voltage at a known temperature.

\(T = T_0 + (Vout_0 -Vout) \cdot 500\)
What does \cdot 500\ mean?
cdot is the multiplication sign, for some reason it does not display correctly there