I want to add light sensors to my geenhouse project. Use Nodemcu's digital pins

Please don’t send stuff directly to me. Post it here so all can assist. Be sure to properly format the code so it displays correctly.

The example I posted here shows how to read the input from a digital pin, and make changes based on its state. That should be enough to get you going.

2 Likes