Metal−organic frameworks (MOFs) are a class of porous coordination networks extraordinarily varied in physicochemical characteristics such as porosity, morphologies, and compositions. These peculiarities make MOFs widely exploited in a large array of applications, such as catalysis, chemicals and gas sensing, drug delivery, energy storage, and energy conversion. MOFs can also serve as nanostructured precursors of metal oxides with peculiar characteristics and controlled shapes. In this work, starting from MIL125-(Ti), a 1,4-benzenedicarboxylate (BDC)-based MOF with Ti as metallic center, mesoporous TiO2 powders containing both anatase and rutile crystalline phases were produced. A challenging utilization of these porous MOF-derived Ti-based oxides is the optically-based quantitative detection of molecular oxygen (O2) in gaseous and/or aqueous media. In this study, the photoluminescence (PL) intensity changes during O2 exposure of two MOF-derived mixed-phase TiO2 powders were probed by exploiting the opposite response of rutile and anatase in VIS-PL and NIR-PL wavelength intervals. This result highlights promising future possibilities for the realization of MOF-derived doubly-parametric TiO2-based optical sensors.