added thermocouple debugging