There are several types of noncontact temp sensors. They all work based on a simple principle: Planck's Law of the thermal emission of radiation.
http://www.temperatures.com/ncsensors.html
http://evitherm.athena.as/Default.asp?ID=678&mode=html#aq8