It is now common to measure temperature with electronics. The most common sensor is a thermal resistance.
This device changes its resistance with changes in temperature. Acomputer or other circuit measures the resistance and converts it to a temperature, either to display it or to make decisions about turning something on or off. If you would like to build your own electronic thermometer.