In all animals, hypoxia triggers a defensive response that is orchestrated by the conserved transcription factor HIF-1. The authors find that HIF-1 induces new serotonin synthesis in certain sensory neurons in C. elegans. This serotonin then activates a previously unknown circuitry that enhances the worms' salt sensation.