An animal's survival strongly depends on a nervous system that can rapidly process and integrate the changing quality of its environment and promote the most appropriate physiological responses. This is amply demonstrated in the nematode worm Caenorhabditis elegans, where its sensory system has been shown to impact multiple physiological traits that range from behavior and developmental plasticity to longevity. Because of the accessibility of its nervous system and the number of tools available to study and manipulate its neural circuitry, C. elegans has thus become an important model organism in dissecting the mechanisms through which the nervous system promotes survival. Here we review our current understanding of how the C. elegans sensory system affects diverse physiological traits, whose coordination would be essential for survival under fluctuating environments. The knowledge we derive from the C. elegans studies should provide testable hypotheses in discovering similar mechanisms in higher animals.