A thermostat is used to control heating devices. It works by detecting the temperature and when it reaches a certain height it turns off the heating device till the temp drops back down. I'm not currently using one but I know there is a good write up if you look in the husbandry stickies.