Pregunta de entrevista de Dow

How does a thermostat work?