I am working with a Yun board for the first time. I have written a code to change the intensity of an LED according to the output given by an LDR and a PIR motion sensor. The LED should work only when motion is detected by the PIR sensor. But, I have failed to notice the change in intensity of the LED.
I have observed the change when I dumped a simple Intensity variation code but the variation is not being observed when I am using an LDR and a PIR. Can you please help me out??
I am attaching my code here…
doubt.pdf (116 KB)