A polymer composition comprising polymers of pyrrole, thiophene, aniline, or combinations thereof, and an antibody, wherein the polymer composition is formed in the presence of acetonitrile and an electrolyte selected from the group consisting of p-toluene sulfonic acid, naphthalene sulfonic acid, a combination of p-toluene sulfonic acid and naphthalene sulfonic acid, and tetraacetyl ammonium toluene sulfonate, wherein the antibody is capable of specifically binding to an analyte, and wherein the polymer composition is adapted to bind specifically to the analyte and to release the analyte upon application of a signal to the polymer composition, wherein the signal is sufficient to release the analyte from the polymer composition and the signal is an electric current, a change in voltage, an alteration in polarity, or a change in ionic strength of a solution surrounding the polymer composition.