Room lightning System using Z-Score Analysis

image
Every time I am getting same value of LDR and after fetching all 10 value still it’s not sending message instead the show as:"this is an value 1024 all the time.
this is my code:
1.]


2.] image

Did you connect 10k ohm resistor in series to you’r ldr? If yes then use a flashlight in a dark room and test . If nothing works then I am afraid you’r ldr is not working properly.

Hi @ghagaresudhir,

@junkstuff2199 has the right general Idea. The issue is with the circuit connection. Go through the debugging steps mentioned in the following link to fix the issue.
https://trainings.boltiot.com/courses/429176/lectures/6654602