The body temperature is controlled by the anterior hypothalamus (the preoptic area). It directly senses the temperature, as well as evaluates the thermoreceptor signals coming from the skin and other parts of the body (e.g. mucous membranes). Based on these signals it promotes either heat retention or heat loss (by means of vasodilation, sweating, shivering etc. according to what is needed).