Smart and Renewable Energy System to Power a Temperature-Controlled Greenhouse