Energy can be transfered and transformed, but it cannot be created or destroyed. AKA the principle of conservation of energy. Plants do not produce energy; they transform light energy to chemical energy. During every transfer of transformation of energy, some energy is converted to heat, which is the energy associated with the random movement of atoms and molecules creating entropy.
The first law of Thermodynamics