Solar Energy is the only way to save earth, resources also it is almost free and renewable energy. Using such…