Thermocouples for machines and moulds