Solar panels without a doubt produce electricity. But how much they produce depends on several key factors.
First and maybe fairly obvious is to consider how much sun your area gets. Now if you live in the desert or in the mountains, you are in luck. But for people living in other areas, an important consideration to be aware of is how bright the sunlight is. Brighter is better.
For a solar panel to harvest enough light from the sun to produce a good amount of power, you really need bright, full, shadow-free sunlight. So your panels will not generate as much electricity if your region tends to have a lot of cloudy weather.
The major problem facing homeowners with solar panels is shadow. That is just what it sounds like. When your panel or even part of your panel is shaded, the voltage output becomes lower. And even a small bit of shade can affect output quite dramatically.