how do the nervous and endocrine systems respond to an increase environment temperature to achieve homeo0statis