Answer:
By using his nose!!
Planck noted that the spectrum of black body radiation could be explained by assuming that light came in chunks he called "quanta." He himself did not think these quanta actually existed, he only noted this as a mathematical curiosity.