Might be a bit clearer if you split the code that runs the web server and the code that reads the sensors and controls the sprinkler - put it in different files or something?
now, the directory are redefined, you should see the web code and relevant file such JS, CSS clearly in the html folder.
In the Code folder, you can see the main code
Might be a bit clearer if you split the code that runs the web server and the code that reads the sensors and controls the sprinkler - put it in different files or something?