New research reveals that serotonin plays a key role in how the brain predicts future rewards, shedding light on its puzzling activity in response to both pleasure and pain. Scientists found that serotonin neurons encode a "prospective code for value," signaling expectations about upcoming outcomes and how rapidly those expectations are changing.