A novel fluorescent probe (C460@Tb-MOFs) was designed and synthesized through encapsulating the fluorescent dye 7-diethylamino-4-methyl coumarin into terbium-based metal-organic framework by a simple ultrasonic impregnation method. It is impressive that this dye-modified metal-organic framework can specifically detect styrene and temperature upon luminescence quenching. The sensing platform of this material exhibit great selectivity, fast response and good cyclability toward styrene detection. It is worth mentioning that the sensing process undergoes a distinct color change from blue to colourless, providing conditions for accurate visual detection of styrene liquid and gas. The significant fluorescence quenching mechanism of styrene toward C460@Tb-MOFs is explored in detail. Moreover, the dye-modified metal-organic framework can also achieve temperature sensing from 298 to 498 K with high relative sensitivity at 498 K. The preparation of functionalized MOFs composites by fluorescent dyes provides an effective strategy for the construction of sensors for multifunctional applications.