Using a servo with LDR to turn a solar panel

If someone gives you the code, what will you have learned?