A short-term physiological response to environmental changes that helps an organism survive, such as getting a tan.