The hypothalamus is the processing centre in the brain that controls body temperature. It does this by triggering changes to effectors, such as sweat glands and muscles controlling body hair. Heat stroke can happen when the body becomes too hot; and hypothermia when the body becomes too cold.