Solar panel intelligence with arduino

I'm building a program to manage a solar energy panel. The calculations used are calculations used in the solar radiation discipline of the Unesp Botucatu Faculty of Agronomic Sciences. I have as main guideline of the project the professor doctor Alexandre Dal Pai.
Due to the project being very large I will post it in parts, comment and suggest the will.

Image from Original Post so we don't have to download it. See this Image Guide

...R

Post your code and the output as text. I can't read that picture and I can't load the code into my text editor.

And when posting code please use the code button </>so your code looks like thisand is easy to copy to a text editor See How to use the Forum

...R