The nervous system that sprouts from the brain may seem like an incomprehensible tangle. But anatomists can divide it pretty cleanly into two parts. One part is directed to the outside world, while the other is turned inward.
The somatic nerves take in sensory information from the outside world from our eyes, nose, ears, and skin. They also relay commands to move muscles. They are essential for our responding to the external world. Visceral nerves, on the other hand, detect information about our internal state. They sense blood pressure, the queasiness in our guts, even the level of oxygen in our bodies. And they also send signals to those organs, causing racing hearts, gasping lungs, and puking stomachs.