Take the simple case of water molecules.. you freeze them, it turns into ice.. at around 100° it vaporizes.
For each and every reaction in this example, the molecule needs to react to heat, for it to react to heat, it needs to sense and validate heat. For it to sense and validate heat, it needs to process the information regarding its surroundings.
Same with everything else.. be it atoms or electrons.