In modern solar tracking systems, the solar panels are fixed on a structure that moves according to the position of the sun.
Let us design a solar tracker using two servo motors, a light sensor consisting of four LDRs and Arduino UNO board.
"They fit the servo routine into about 60 byes which is pretty impressive. Twice a second it makes a tiny update."
https://electronnicproject.blogspot.com/2017/07/solar-tracker-arduino.html