This makes bacteria candidates for use in electricity-generating devices. use a pair of battery-like terminals connected to an external. When bacteria physically attach to the anode, electrons generated in the interior of the cell are transferred to an external electrode, producing electrical current.