Building your 1st iot sensor project

in project 1 I’m getting values 569 and so on till 1k is it correct or should we get only answer as 1 and 0.

1 Like

The values are correct as they’re meant to be analog, not digital.
Try going below 569 as well for more variety in your readings. :slight_smile:

1 Like

@sowjanyahebbar15
The LDR is an analog input device whose internal resistance changes depending on how much light is falling on it. The resistance is inversely proportional to the incident light intensity.
Thus since light intensity is changing and so will be resistance it will be an analog data and not a digital one.
Project 1 uses the conversion of change in resistance to change in voltage.
This has been very elaborately explained in the section:“Introduction to LDR”

I hope this helps!:grinning:
Regards

1 Like

Hii Dear Friend , I agree with what you said but why LDR value is not inversely proportional when I run the project. With high intensity the data becomes large and vice versa ??.
Can you please explain me ?

Hi @bcapp40

If the LDR (Light Dependent Resistor) values are not inversely proportional to light intensity as expected, check for wiring issues, confirm the voltage divider configuration, verify ADC readings, perform calibration, and consider the characteristics of the LDR. Also, ensure there are no external light sources affecting the readings.