Our study establishes that intestinal infection and bloating of the lumen, which depend on the virulence of P. aeruginosa, regulate both pathogen avoidance and aversive learning by modulating the neuroendocrine pathways NPR-1/GPCR and DAF-7/TGF-β that control aerotaxis behavior (Figure 7). Here, TGFB1 is linked to digestive system infectious disorder.