Electrically conductive, genetically tunable, pilin-based protein nanowires (ePNs) expressed in Escherichia coli grown on the biodiesel byproduct glycerol are a sustainable electronic material. They were previously shown to effectively function as sensing components for volatile analytes when deployed as thin films in electronic devices. However, thin-film devices are not suitable for analyzing components dissolved in water. To evaluate the possibility of fabricating a water-stable ePN matrix, ePNs purified from cells were mixed with polyvinyl butyral (PVB) to produce a transparent, electrically conductive, water-stable composite. ePN/PVB composite conductivity was tuned by changing the concentration of ePNs in the composite or genetically tailoring ePNs for different conductivities. Devices with an ePN/PVB sensing component rapidly responded in a linear fashion to changes in concentrations of dissolved ammonia or acetate. Genetically modifying nanowires to display an analyte-binding peptide on the ePN outer surface that was specific for ammonia or acetate increased sensing sensitivity and specificity. Composites comprised of whole cells of E. coli expressing ePNs and PVB were also electrically conductive. They functioned as sensing components whose sensitivity could also be tuned with the expression of ePNs displaying specific analyte-binding peptides. This approach avoids the laborious and time-consuming purification of protein nanowires from cells. The simplicity of sustainably fabricating an electronic sensing component with ePN-expressing E. coli mixed with a polymer, coupled with the potential of exquisitely tuning sensing specificity with facile 'plug and play' nanowire design, demonstrates the possibility of simply and inexpensively producing sensing devices for detecting a broad range of analytes.