Poly(p-pyridinium phenylene ethynylene)s (PPyPE) functionalized with alternating donor-acceptor repeat units were synthesized by a Pd-catalyzed Sonogashira coupling reaction between diethynyl monomer and di-iodopyridine for use as a pH-responsive fluorescence chemical sensor. The synthesized PPyPE, containing pyridine units, was characterized by FT-IR, (1)H and (13)C NMR, UV-visible and fluorescence spectroscopies. We investigated the relationship between changes of optical properties and protonation/deprotonation of PPyPE containing pyridine units in solution. Addition of HCl decreased and red-shifted the fluorescence intensity of the conjugated polymers that contained pyridine rings; fluorescence intensity of the polymers increased upon addition of NaOH solution. The synthesized PPyPE was found to be an effective and reusable chemical sensor for pH sensing.