Polymers have distinctive optical properties and facile fabrication methods that have been well-established. Therefore, they have immense potential for nanophotonic devices. Here, we demonstrate the temperature-sensing potential of SU8-meta-phenylenediamine (SU8-mPD), produced by epoxy amination of the SU-8 polymer. Its properties were examined through a series of molecular structural techniques and optical methods. Thin layers have demonstrated optical emission and absorption in the visible range around 420 and 520 nm, respectively, alongside a strong thermal responsivity, characterized by the 18 ppm °C -1 expansion coefficient. A photonic chip, comprising a thin 5-10 μm SU8-mPD layer, encased between parallel silver and/or gold thin film mirrors, has been fabricated. When pumped by an external light source, this assembly generates a pronounced fluorescent signal that is superimposed with the Fabry-Pérot (FP) resonant response. The chip undergoes mechanical deformation in response to temperature changes, thereby shifting the FP resonance and encoding temperature information into the fluorescence output spectrum. The time response of the device was estimated to be below 1 s for heating and a few seconds for cooling, opening a new avenue for optical sensing using SU8-based polymers. Thermoresponsive resonant structures, encompassing strong tunable fluorescent properties, can further enrich the functionalities of nanophotonic polymer-based platforms. This article is part of the theme issue 'Celebrating the 15th anniversary of the Royal Society Newton International Fellowship'.