In thermodynamics, heat and temperature are closely related concepts with precise definitions. Heat, qstart text, q, end text, is thermal energy transferred from a hotter system to a cooler system that are in contact. Temperature is a measure of the average kinetic energy of the atoms or molecules in the system.
Hope this helps! :)