To behave appropriately in dynamic environments, animals must integrate external stimuli with their recent experience and internal state. For example, successful foraging necessitates prioritizing food-related cues when hungry. To investigate how sensory experience and internal state can lead to lasting changes in nervous system function, we examined how recent experience impacts neuronal gene expression in the context of feeding behaviors. First, we used a ribosome-tagging approach to profile whole-nervous system gene expression in fed versus fasted animals. This approach identified 203 neuronal genes that are upregulated by fasting. Among these genes, G-protein coupled chemoreceptors putatively expressed in the AWA sensory neuron were overrepresented. We generated CRISPR knock-in transcriptional reporters for several of these chemoreceptors and confirmed their fasting-dependent upregulation in AWA. Of these,
str-44 showed the most robust change in expression, so we performed in depth studies of its function and regulation. Strikingly,
str-44 expression is influenced by a broad range of internal and external cues: the fed/fasted state of the animal, the presence of bacterial odors, and the presence of pathogens and additional stressors. Feeding state-dependent
str-44 expression depends on insulin and TGF-beta signaling, as it is disrupted in
daf-16/FOXO and
daf-7/TGF-beta mutants. Experiments with food odors and non-ingestible bacteria suggest that, independent of feeding state, volatile food odors also impact
str-44 expression. Chemosensory cues that influence
str-44 expression are detected by AWA itself as well as additional
tax-4-expressing neurons. Osmotic stress, heat stress, and infection by pathogenic bacteria also suppress the increase in
str-44 expression during fasting, indicating that
str-44 expression represents an integration of states rather than strictly nutritional state. AWA calcium responses to bacterial food are potentiated in the fasted state relative to the fed state, and this potentiation is reduced by osmotic stress during fasting. Preliminary experiments suggest that
str-44 expression may be sufficient to confer sensitivity to putative food odors previously found to be detected by AWA with as of yet unidentified receptors. Based on these results, we suggest that environmental conditions that promote food-seeking behavior converge to regulate chemoreceptor expression in AWA, which in turn controls the animal's sensitivity to bacterial food.