The membrane of E. coli bacteria detects chemicals of interest via transmembrane receptor proteins.
“Chemotactic bacteria navigate complex chemical environments by coupling sophisticated information processing capabilities to powerful molecular motors that propel the cells forward. Escherichia coli recognize chemoattractants using five transmembrane receptor proteins, which cluster with one another and interact with a set of well-characterized cytosolic proteins to effect changes in the directional rotation of the flagellar motor.” (Topp 2007:6807)