This paper highlights the role of artificial intelligence (AI) in electric lighting for enhancing smart agriculture. The use of electric lighting in greenhouses is widely practiced in the present time, as sunlight is poorly available in some parts of the world. Different plants have different growth in different spectrum of light. The spectrum of light in which the plant grows maximum is coined as optimum growth spectrum (OGS). Hence, this study aims to choose artificial intelligence in assessing the optimum spectrum of light for a given plant. RGB based LEDs are used and its luminous efficacy is interpreted, considering different blend of mechanisms and the yield current and temperature. Rapid light fluctuations offered by pulse amplitude modulation causes a loss in the output of the LEDs. Hence, there lies a finite gap in the light provided and the light reaching the plant. Since, LEDs are the source of light here, hence, light sources complying with higher CRI should be deployed, as used in this experiment. The overall system was so designed such that when a plant is cultivated, using image processing, AI identifies the specific plant and implements all the available data, like the optimum growth spectrum, temperature, humidity, etc. The experiment clearly emphasizes on the results which were impressive. The OGS of the given plant has been figured out and trained the system through AI to execute the growth functions for the given plant.