Thanks for replying. I tried both methods you mentioned above, but neither of them worked. The power supply I am using is the USB cable for Android phones.
Also, when I compiled and uploaded the code, this message in showed up in red:āArchiving built core (caching) in: C:\Users\panyu\AppData\Local\Temp\arduino_cache_219869\core\core_esp8266_esp8266_d1_mini_CpuFrequency_80,UploadSpeed_115200,FlashSize_4M3M_9755e03b568b2dfea811c71b788829cf.a
Sā. I dont understand what this means.
This message is telling you upload details, itās not warning message. And it seems you specified Wemos mini D1 instead of NodeMCU, so try chosing proper board before uploading.
Once again, whatās your Ardiuino ESP8266 core version? Go to tools->boards->boards manager, then scroll down to the end of the list. There you will find esp8266 by esp8266 community version x.x.x. Read that number for me.
No, power supply you are using is certainly not USB cable for Android phones, as it has to be attached to something. I need to know what that something is.
Get rid of this delayā¦ you already have the timer set for a 2 second cycle, thus that sendSensor() function keeps restarting from the beginning before it gets to the Blynk.virtualWrite() ā¦ And even 2 seconds on the timer is too fast for the DHT11, perhaps change the timer to 5 seconds.
I tried to read from Pin 0,2,4 and even 16, some of them give me 255 as temperature(which is definitely wrong) and the rest of them still give me no readings.
Well, I donāt know the revision of your boardā¦ but I think pn 2 is the correct designationā¦ try changing to another physical pin, say D8 with pin 8 in your sketch.
I also found this similar diagramā¦ and noticed something else that I missed in the above diagram. that pin is also referenced as D0 in the R2 revisionā¦ so maybe you have a mislabeled boardā¦ long stretch, but wellā¦ try pin 0 in your sketch just for fun
EDIT - looks like you may have already tried that.