A solar cell l is a semiconductor with energy band gaps that directly absorb the solar spectrum. There are various types of solar cells, but the most common is fabricated from silicon for its affordable prices and large quantities. However, some types are rare, e.g., those made for rare earth, which is expensive and has high production cost. The doped material creates a potential difference in the PN junction, the photon [1] creates the negatively charged electron and the positively charged hole, both of them could conduct electricity. A potential difference, therefore, causes the electrons to move in the opposite direction of the hole, and when a circuit is complete, electricity is generated.