Science project

I've decided to do a light-following solar panel with an Arduino for my science project. However, I'm kinda stuck. I'm confused on how to get the numbers to compare, then tell the servo to go to that position...

 

Thanks for the help!

Newb

I’m a newb at Arduino, but here’s my theory of how to do it?

Get two Photodiodes, analog output. Use the Analogin on the arduinos to get the resistances from both, and then see which is bigger, like this:

 

If Analog1 > Analog2 Then turn right

Take an analog reading constantly as you turn, and when analog1 = analog2, you stop turning

If analog1 < Analog2 Then turn left

Take an analog reading constantly as you turn, and when analog1 = analog2, you stop turning