Detecting pathogens and mounting immune responses upon infection is crucial for animal health. However, these responses come at a high metabolic price (McKean and Lazzaro, 2011, Kominsky et al., 2010), and avoiding pathogens before infection may be advantageous. The bacterial endotoxins lipopolysaccharides (LPS) are important immune system infection cues (Abbas et al., 2014), but it remains unknown whether animals possess sensory mechanisms to detect them prior to infection. Here we show that Drosophila melanogaster display strong aversive responses to LPS and that gustatory neurons expressing Gr66a bitter receptors mediate avoidance of LPS in feeding and egg laying assays. We found the expression of the chemosensory cation channel dTRPA1 i...