When danger is detected your endocrine system and nervous system work together. The hypothalamus triggers the sympathetic branch of the autonomic system. Your body goes through a physiological change from resting state (parasympathetic ) to an aroused state (sympathetic). The stress hormone adrenaline gets released from the adrenal gland