Temperature-Sensing Behavior Based on Upconversion Luminescence at the Rhombohedral–Tetragonal Phase Boundary