A systematic investigation on the fluorescent spectra of SrB4O7:Sm2+ was performed in detail at high-temperature up to 623K and/or high pressure up to 23.2GPa with different pressure-transmitting media (PTMs), respectively. Combined with experiment data of previous research, the change of the D-7(0)-F-5(0) line (0-0 line) full width at half maximum (FWHM) of SrB4O7:Sm2+ under different pressure environments was specifically discussed. The results indicate that the FWHM of 0-0 line is sensitive to the non-hydrostatic pressure environment in 2-propanol, and methanol and ethanol mixture (ME) PTMs at ambient temperature. The first-order and the second-order derivation of the temperature dependence of 0-0 line FWHM at ambient pressure are 1.48(+/- 0.21)x10(-4)nm/K and 9.63(+/- 0.63)x10(-7)nm(2)/K-2 below 623K. The 0-0 line FWHM is also sensitive to the non-hydrostatic pressure environment in ME at high-temperature and high pressure simultaneous, the non-hydrostatic transition pressures are 9.6GPa at 323K, 11.0GPa at 373K, 14.4GPa at 423K, respectively. SrB4O7:Sm2+ is recommended as an optical sensor to reflect the change of pressure environment in liquid media at high-temperature and/or high pressure.