A polymer matrix that may coated on an electrode is created by co-crosslinking (1) an adduct of a polyaniline formed by templated oxidative polymerization on a polymer acid; (2) a water-soluble crosslinker; and (3) a redox enzyme. The polymer matrix may be hydrated, and the absorbed