Explosion-proof temperature measurement