Living bacteria generate electrical signals in a new hydrogel sensor that can detect substances in liquids like milk.