At time 4:52 of the video, the LED pin is changed from pin 22 to pin 45 in order to allow light dimming / brightness based on moisture level.
Recommenation: (1) Change the circuit diagram by moving LED pin from 22 to 45.
(2) Change #define ledPin 22 to #define lefPin 45
(3) Modify the comment to reflect the pin change
Note: The current circuit diagram does work, but it doesn't match the content of the vido.
At time 4:52 of the video, the LED pin is changed from pin 22 to pin 45 in order to allow light dimming / brightness based on moisture level.
Recommenation: (1) Change the circuit diagram by moving LED pin from 22 to 45. (2) Change #define ledPin 22 to #define lefPin 45 (3) Modify the comment to reflect the pin change
Note: The current circuit diagram does work, but it doesn't match the content of the vido.