Using terabytes of neural data, neuroscientists are starting to understand how fundamental brain states like emotion, motivation, or various drives to fulfill biological needs are triggered and sustained by small networks of neurons that code for those brain states.