Hello everyone,
i am trying to making one small project which is based on arduino and esp8266, where i am interfacing LM35 sensor and reading value of temperature on gauge and i used one LED indicator for status after reaching the value more than 50 degree celcius. my indicator not working. i think my logic wrong.
please give me solution on it.
@Shubham_Ragit please edit your post, using the pencil icon at the bottom, and add triple backticks at the beginning and end of your code so that it displays correctly.
Triple backticks look like this:
```
Once you’ve done that, we’ll tell you what the problem is and how to fix it.
You’ve also tried posting your code a second time, but rather than copying and pasting the triple backticks that I provided for you, you decided to try it with quotes instead - which doesn’t work.
Post your code, properly formatted, and we’ll tell you the changes you need to make.
Here’s what the documentation (which @psoro already shared with you) for the LED widget says:
LED
A simple LED for indication. You need to send 0 in order to turn LED off. And 255 in order to turn LED on.
All values between 0 and 255 will change LED brightness
In C++, HIGH or true = 1 and LOW or false = 0
This means that this line of code:
Is turning the LED widget attached to V1 on, but at brightness 1 out of 255. As a result, the LED is so dim that it appears to be off.
Replacing HIGH with 255 will fix your problem.
Also, sharing your Blynk auth code on a public forum is very bad practice, as it allows anyone to control your project. You should refresh the auth code within the app, and use the newly generated code in your sketch (and keep it private in future).