Mechanisms of thermoregulation in plants