How to measure chip (or other component) temperature?

Isn't the L298 a better IC..?