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


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