producing a voltage or current as a predetermined function of the temperature