Photovoltaic (PV) devices are made of materials called semiconductors that allow them to generate electricity when exposed to sunlight. Solar energy releases electrons in these substances, allowing them to travel through an electrical circuit and produce a small current.