Temperature monitoring in the metal casting process