Programmable thermostat for temperature control in entranceway