Environmental humidity influences the fitness and geographic distribution of all animals 1. Insects in particular use humidity cues to navigate the environment, and previous work suggests the existence of specific sensory mechanisms to detect favorable humidity ranges 2-5. Yet, the molecular and cellular basis of humidity sensing (hygrosensation) remains poorly understood. Here we describe genes and neurons necessary for hygrosensation in the vinegar fly Drosophila melanogaster. We find that members of the Drosophila genus display species-specific humidity preferences related to conditions in their native habitats. Using a simple behavioral assay, we find that the ionotropic receptors IR40a, IR93a, and IR25a are all required for humidity preference in D. melanogaster. Yet, whereas IR40a is selectively required for hygrosensory responses, IR93a and IR25a mediate both humidity and temperature preference. Consistent with this, the expression of IR93a and IR25a includes thermosensory neurons of the arista. In contrast, IR40a is excluded from the arista but is expressed (and required) in specialized neurons innervating pore-less sensilla of the sacculus, a unique invagination of the third antennal segment. Indeed, calcium imaging showed that IR40a neurons directly respond to changes in humidity, and IR40a knockdown or IR93a mutation reduced their responses to stimuli. Taken together, our results suggest that the preference for a specific humidity range depends on specialized sacculus neurons, and that the processing of environmental humidity can happen largely in parallel to that of temperature.