Temperature is a quantity which tells the thermal state of a body (i.e. the degree of hotness or coldness). It determines the direction of flow of heat when the two bodies at different temperatures are placed in contact, which is from higher temperature to lower temperature body.