sensing and responding to changes occurring both inside and outside of the body