How do Solar Lights Work?

Solar lights work by using a photocell to store the energy that is exerted by sunshine. The photocell is charged as the sun shines and then when it gets dark, the cell powers up the light until its energy is exhausted.