Regarding telegram

I just tried to write a code that would light up the led when the value of ldr is less.
I’m not getting desired messages to telegram and led is not lighting up when the sensor value is less.
Can anyone please try to help me in solving the problem…
here I’m attaching the screen shot of the code and telegram message which I recieved

Telegram message

Screenshot%20from%202020-07-18%2011-06-26

i found out that in your code ,you have used message variable 2 times. the first time you have writren the message to be printed. then you replace it with your digital write command.so in telegram it prints the above message.for the led not glowing,make sure you have a resistor attatched to it to allow limited current through it or the led may get damaged.hope it helps.

1 Like