A dye encapsulated terbium-based metal-organic framework for ratiometric temperature sensing.