A photoluminescence (PL)-based oxygen and glucose sensor utilizing inorganic or organic light emitting diode as the light source, and polythiophene: fullerene type bulk-heterojunction devices as photodetectors, for both intensity and decay-time based monitoring of the sensing element's PL. The sensing element is based on the oxygen-sensitive dye Pt-octaethylporphyrin embedded in a polystyrene matrix.