Temperature can change the potential difference between an alloy inside a thermocouple, so temperature can be measured by measuring the voltage.
You can use infrared detector to measure the temperature of a wood since matters of different temperatures emit infrared of different wavelengths.