Suppose you have an exotic plant that needs to be illuminated in green light when the light levels reach a certain value.
The system is to have an automatic mode where the green LEDs turn on when the ambient light value is between 50% and 60% of the maximum ambient light level. The light level (as a percentage) should be viewable through the serial monitor.
Upon pressing a button, the system should go to manual mode and the upper end of the light level range should be variable with the potentiometer to be between 55% and 90% of the ambient light level.
When pressing the SAME button, the system goes back into automatic mode.
You'll need to use everything you've learned for this program: serial monitor, keeping track of button presses, custom procedures, mapping values, etc.