Chronic wounds do not heal within 3 months, and during the lengthy healing process, the wound is invariably exposed to bacteria, which can colonize the wound bed and form biofilms. This alters the wound metabolism and brings about a change of pH. In this work, porous silicon photonic films were coated with the pH-responsive polymer poly(2-diethylaminoethyl acrylate). We demonstrated that the pH-responsive polymer deposited on the surface of the photonic film acts as a barrier to prevent water from penetrating inside the porous matrix at neutral pH. Moreover, the device demonstrated optical pH sensing capability visible by the unaided eye.