Sunlight (light, not heat) on photovoltaic modules produce direct current (DC) electricity which is converted to alternating current (AC) by a device called an inverter, which is then wired into your main service panel where it feeds your internal power grid.