Low-cost temperature sensors can be achieved by using a diode or transistor (by shorting the Base and Collector). When constant current passes through the base-emitter junction it produces a voltage between the base and emitter (Vbe) that is a linear function of the absolute temperature.
The overall forward voltage drop has a temperature coefficient of approximately 2 mV/°C. The semiconductor junction sensor’s voltage versus temperature is much more linear than that of a thermocouple or resistive temperature device (RTD).