A smart chip for visual detection of bacteria using the electrochromic properties of polyaniline.