The device which does this is called a thermostat.
ð ə WORD_BOUNDARY d ɪ v aɪ s WORD_BOUNDARY w ɪ t̠ʃ WORD_BOUNDARY d ʌ z WORD_BOUNDARY ð ɪ s WORD_BOUNDARY ɪ z WORD_BOUNDARY k ɔ l d WORD_BOUNDARY ʌ WORD_BOUNDARY θ ɜː m ə s t æ t WORD_BOUNDARY