I believe there are various compounds which will change colour with temperature, I have seen colour changing paint.
Another possibility is a compound which could be added to suitable glass to change is reflectivity according to temperature, opaque to transparent perhaps.
Lens for glasses are made which become darker in bright sunlight.
I would guess there are several possibilities, I hope none of them are toxic!
John