SrB4O7:Sm2+ fluorescence improves the accuracy of temperature measurements in externally heated diamond anvil cells.