Electrospun nanofibers and spin coated films prepared from side-chain copolymers with chemically bounded platinum (II) porphyrin moieties for oxygen sensing and pressure sensitive paints.