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.
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.
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!