using a semiconductor device to sense the temperature