Your solar system for home works by allowing photons from the rays of the sun to knock electrons free from…