How can electrons keep being generated by solar panels?

I was trying to figure out how solar panels work today and I found that electrons get displaced in 2 layers of a solar panel by photons coming from the sun to create power. If the electrons come from the solar panel and go into the electrical grid, how are they replaced in the solar panel? Wouldn’t the solar panel eventually lose all of its electrons and stop working? Electrons have mass, so wouldn’t the solar panel slowly deteriorate?

I think solar energy is awesome and I really want to know how it works. Any help in enlightening me on this subject would great, thanks!

StumbleUpon It!