Reads light intensity. If it exceeds certain threshold, it displays 0, if there is no light, it displays 1 to Serial Monitor.
Parts:
1. NodeMCU x 1
2. LDR Sensor Module
3. Jumper wires x 3 (male to male)
4. Breadboard
Code:
https://snipit.io/lists/5265/15758
Ref:
Using Digital Pin:
https://tutorial.cytron.io/2017/07/10/getting-started-light-sensor-module-sn-light-mod/
Using Analog Pin:
https://www.instructables.com/id/LDR-Sensor-Module-Users-Manual-V10/
No comments:
Post a Comment