Blynk ESP8266 DHT11 Temperature Sensor

  Рет қаралды 454,339

Viral Science - The home of Creativity

Viral Science - The home of Creativity

Күн бұрын

Пікірлер: 242
@mgjr009
@mgjr009 4 жыл бұрын
Great tutorial! Had trouble with my ESP8266 not compiling. Turned out to be the SimpleTimer Library, here's how I learned to fix it: // Remove this //#include ... // Modify this //SimpleTimer timer; // into this BlynkTimer timer; Hope this helps anyone with this error. Thanks again!
@AngerMike
@AngerMike 4 жыл бұрын
You are my hero!
@mgjr009
@mgjr009 4 жыл бұрын
@@AngerMike Glad it helped you out!
@u4405672
@u4405672 4 жыл бұрын
Excellent goodman
@TheCarbonburner
@TheCarbonburner 4 жыл бұрын
Thanks, yes this worked for me as well!
@Gaber820
@Gaber820 4 жыл бұрын
thanks
@woodywood1951
@woodywood1951 2 жыл бұрын
one of the few videos that lead to an application that works immediately. Good job! Thanks for your time!
@taavikoppel1769
@taavikoppel1769 6 жыл бұрын
I copied everything but with a DHT22 sensor. Changed the line to use DHTTYPE DHT22. In the serial monitor I get "Failed to read from DHT sensor" Any ideas where I should look for the error? EDIT: Found the error. The code says DHTPIN 2 but the comment says PIN 4. And the diagram also indicates to PIN 4. It was actually using PIN2. The Blynk app is also updating now. Fantastic!
@mlggeek1812
@mlggeek1812 6 жыл бұрын
Ty for the edit!
@lucaslobatovilazante9632
@lucaslobatovilazante9632 6 жыл бұрын
hi man, so did you solve the problem?
@joaomendes4049
@joaomendes4049 5 жыл бұрын
I already checked this but it remains the same. Did you do anything else?
@metinplayer1999
@metinplayer1999 4 жыл бұрын
From where can i find the esp8266wifi.h lib ?
@rustydusty3715
@rustydusty3715 4 жыл бұрын
your code not working.plz help. exit status 1 Error compiling for board NodeMCU 1.0 (ESP-12E Module).
@PêcheOuCapot
@PêcheOuCapot 4 жыл бұрын
Don't forget to install blynk library manually.
@AdibRL
@AdibRL 4 жыл бұрын
@@PêcheOuCapot still doesnt work
@asmodeus_gaming069
@asmodeus_gaming069 3 ай бұрын
sir on which software were you doing this circuit diagram? Can you suggest some names where I can do circuit connections and upload codes for demo before on-hand iot for practice.
@davidjamesrayverviado2407
@davidjamesrayverviado2407 4 жыл бұрын
Hey viral science! I just want to Ask if what ZIP files do you need to make that? do you need to insert zip folders or no?
@HamzaHajeir
@HamzaHajeir 6 жыл бұрын
Neat ! But how was the humidity 95% ? what was wrong ?
@cranexdragon1046
@cranexdragon1046 4 жыл бұрын
Most likely not. Depending on the location if this was an outdoor garage or workspace that wouldnt be otherwise heated the humidity can easily jump if there is a slight decrease in temp.
@ManuelCastillo-kq3xy
@ManuelCastillo-kq3xy 6 жыл бұрын
No code, No circuit. Both links are droped. Please, can I reload?
@amalanathannathan5058
@amalanathannathan5058 5 жыл бұрын
same here.....pls help i need it
@gunjanshorts1
@gunjanshorts1 5 жыл бұрын
Send linksss
@ogdarthv5943
@ogdarthv5943 5 жыл бұрын
same here
@jlaroche0
@jlaroche0 5 жыл бұрын
Yup. No code & no circuit == supreme waste of time.
@carversi
@carversi 5 жыл бұрын
Here you have the code URL: www.viralsciencecreativity.com/tutorials/blynk-esp8266-dht11-temperature-sensor
@attiliovolpe4140
@attiliovolpe4140 5 жыл бұрын
No code no circuit, please send new link
@brandlygaming498
@brandlygaming498 3 жыл бұрын
Can you add a fan to act like a cooler on this project??
@uwestraube3765
@uwestraube3765 4 жыл бұрын
Good evening, I have rebuilt the sensor and works very well with the DHT11. But I want to make a sketch suggestion. A relay should be switched on at a certain temperature and switched off again at a low temperature. That would be great. 2 additional buttons in the Blynk app for on / off would be great. Can you help me with the sketch? Thank you
@toddfogleman
@toddfogleman 4 жыл бұрын
thanks! now that i got down one sensor per project, how about two sensors or more in one project?
@maherriyadh5647
@maherriyadh5647 5 жыл бұрын
what is the name of that simulator app you use to draw ?
@stevemorse5052
@stevemorse5052 4 жыл бұрын
In case you didn't find out, the program he used was Fritzing
@fahmywaleed
@fahmywaleed 5 жыл бұрын
Thanks for the Video. I am having an issue where I used the DHT11 sensor with Arduino Mega and the reading was very accurate compared with another AC controller and sensor that I bought from the store. But when I used the same sensor with ESP8266 the temp reading was accurate but the humidity was off by 5 to 10% which I found very odd. Any idea why is the difference, are you using the same dht11 library with Arduino and ESP8266. Also is there a way to read the fraction temp and humidity or it has to be full integer?
@heisy5651
@heisy5651 5 жыл бұрын
I don’t understand, the esp can create a wifi access and i have to connect ? Or esp can just connect to a network ?
@oszi4399
@oszi4399 4 жыл бұрын
Good video! your cellphone is nice! unfortunately the program has been set up at 50 times the speed so the whole thing is useless. Maybe a step-by-step write-up would help ... I'll be successful next time, or else it's not your desk!
@nikhithatalasila
@nikhithatalasila 2 жыл бұрын
Can I get the connection which you made from nodemcu to sensor it is difficult to see in video
@giovanipellin3384
@giovanipellin3384 3 жыл бұрын
So, I have a question. Will it hold the results in a spreedsheet of some sort?
@vividh1578
@vividh1578 6 жыл бұрын
bro what all equipments do u use for making these videos e.g. camera ,mike etc.. and which editor do u use????
@prooosty
@prooosty 2 жыл бұрын
Please name of program where you draw this project
@dayannemontalvo7212
@dayannemontalvo7212 5 жыл бұрын
hola! una pregunta y si quisiera conectar un sensor de humedad de suelo seria así como tu ejemplo?
@alakondakrishnareddy1705
@alakondakrishnareddy1705 3 жыл бұрын
Can we do the same for smoke sensor.
@azimnajimi7442
@azimnajimi7442 3 жыл бұрын
can i use the coding but using esp32?
@А.Забиров
@А.Забиров 9 ай бұрын
Good day! I have a problem. :-) I have an error - Simple Timer.h. There is no such file or directory
@raj11ization
@raj11ization 6 жыл бұрын
What is the range to which data can be sent. Like 5 km etc
@qbslayer7297
@qbslayer7297 2 жыл бұрын
All over the world just need internet connectivity
@TIKOSCREAM
@TIKOSCREAM 5 жыл бұрын
Nice video but why a Virtual Pin rather than a regular Analog Pin?
@milslion863
@milslion863 4 жыл бұрын
hi. i will like to add SuperChart of blynk. Please can you tell me what change in the code??? thanks!
@PULSTARUnboxing
@PULSTARUnboxing 2 жыл бұрын
how you do this but print result with a web server?
@abrahamherzog7493
@abrahamherzog7493 5 жыл бұрын
I have a problem and I can't not connect my nodemcu to Arduino environment and I have all the plugins! why isn't connect? can you please help me? And thank you very much for your really good good videos I really do appreciate!!
@raymondmphaphathe7053
@raymondmphaphathe7053 2 жыл бұрын
Hi, don't you know how can I link this kind of project with my system so that I can also monitor the temperature through the system I've developed. Not using blynk or any other app?
@lakshmanbirapuneni225
@lakshmanbirapuneni225 6 жыл бұрын
What is that website you are using for circuit making???
@walter-vq1fw
@walter-vq1fw 5 жыл бұрын
Hey, im not sure how likely you are to respond to this, but what power source do you use to power it without connecting it to the computer? Im a noob so i need to ask
@sohilaabdo8658
@sohilaabdo8658 2 жыл бұрын
what about making a connection between ESP8266 with DHT11, MQ2 Smoke Sensor can you make a video explaining it
@nikhilajyothipenta9391
@nikhilajyothipenta9391 5 жыл бұрын
can we connect sound sensor ,dht sensor ,flame sensor ,ultrasonic sensor to one nodemcu and send notification to blynk?
@anasmmcochin
@anasmmcochin 5 жыл бұрын
For that u need to use esp 32... not esp 8266... any doubt u can mail me. anas_ss@ieee.org
@zolution2839
@zolution2839 6 жыл бұрын
Greetings, I can not make it work, I've tried everything and it's fine, but the reading does not come in the blynk application, you have to recharge it with money to enable this function? Thank you
@amirasyraf5720
@amirasyraf5720 3 жыл бұрын
Can someone tell me.. is this project in IoT project category????
@jeremytiempo9639
@jeremytiempo9639 3 жыл бұрын
"Failed to read from DHT sensor! " itried ur code but always failed in node mcu but when i tried to arduino uno it functional pls help
@valentinrymaszewski6574
@valentinrymaszewski6574 4 жыл бұрын
Help, Read failFailed to read from DHT sensor!
@ReginaSamosir
@ReginaSamosir 5 жыл бұрын
Hey, can I use Espruino IDE rather than Arduino IDE?
@vuuc5336
@vuuc5336 4 жыл бұрын
Let me ask, how about adding an LCD display?
@cedriccuny2687
@cedriccuny2687 3 жыл бұрын
kzbin.info/www/bejne/fWHEn2eMj76cZ5o there is a video who is a diagram with no-I2C display. with I2C display it's more easy :) you can find all informations about that on internet :)
@amigueta92
@amigueta92 5 жыл бұрын
how does the esp8266 communicate with the app? through the wifi or internet? i mean...do they have to be in the same wifi network to receive the temperature?
@ViralScience
@ViralScience 5 жыл бұрын
Its is communicating through Internet You can control it from anywhere No need to be on same wifi network
@leonardoavendano6031
@leonardoavendano6031 5 жыл бұрын
Viral Science - The home of Creativity for free?
@manojkumar-we6me
@manojkumar-we6me 5 жыл бұрын
how to download library file for simple timer?
@hamzasajid3773
@hamzasajid3773 4 жыл бұрын
plz let me know im facing same issue
@marewansabir5192
@marewansabir5192 4 жыл бұрын
what is the available distance
@mohdshahrimiemohdasaari5145
@mohdshahrimiemohdasaari5145 4 жыл бұрын
Hi anyone has idea why my reading on blynk appears 255 for both temp and humidity? something needs to do with timer?
@laishramguneshwor3137
@laishramguneshwor3137 6 жыл бұрын
i think.. aapne pin 4 me connect kiya hai.. aur declaration pin 5, 6 me kiya hai .. sahi hai kya?
@kevinpita1421
@kevinpita1421 3 жыл бұрын
Se puede hacer esto con elsensor de Temp. Corporal el Mlx90614
@ThuanDuong-pv3xu
@ThuanDuong-pv3xu 6 жыл бұрын
to: Viral Science ; Please tell me may be get data or control Node Mcu ESP8266 from a smartwatch (DZ09 chiness smart watch) (Wifi) ?
@codyblaze5535
@codyblaze5535 3 жыл бұрын
Can someone please help me it says "expected primary-expression before '.' token" on the "Float t = dht.readTempurature()" And I don't know what to do to fix it so please help me
@MARS-GREENH0USE
@MARS-GREENH0USE 4 жыл бұрын
this is a devic you have to get the app for. the code is here but doesnt work either way. BASICALLY THIS IS A QUICK WAY TO PROMOTE THE APP WHICH CHARGES YOU TO ADD YOUR BUTTONS AND FEATURES TO YOUR DOODAD. , ID PAY IT BUT THIS IS A RUN AROUND. [ON TOP COMMENT]- THOSE 7 COMMENTS ARE FAKE COMPLIMENTS.
@jjawads88
@jjawads88 4 жыл бұрын
how we can add ds3231 instead of dht11
@CharaAspera
@CharaAspera 6 жыл бұрын
can the barometer be added? do you have the code?
@akhilkumarkar9112
@akhilkumarkar9112 5 жыл бұрын
how to download esp libraries and dht
@MrSaravananSMKKB
@MrSaravananSMKKB 4 жыл бұрын
Through library manager bro. for DHT just type DHT and youll see see a library called "DHT sensor library". Install that and you should be good to go. For ESP library kzbin.info/www/bejne/iIe2dJ15pb-SpLM This was slow to install so i use VPN to USA and it installed much faster. The DHT library no need VPN as it will install very fast.
@amirasyraf5720
@amirasyraf5720 3 жыл бұрын
Hi, i want to ask all of you guys.. is this project counted as IoT project?? I need to know it because i need to create Iot Project for my course
@ec_vlog
@ec_vlog 5 жыл бұрын
Do you have tutorial for acs712 sensor blynk display?
@BakhtiyarBaizulla
@BakhtiyarBaizulla 5 жыл бұрын
where can i download the libraries?
@zolution2839
@zolution2839 6 жыл бұрын
I do not know if all but it happens to me that it does not show the data of temperature and humidity in the application blink being all done well, if it is your case write me and I post a posile solution, greetings.
@nikhilajyothipenta9391
@nikhilajyothipenta9391 5 жыл бұрын
can we do the same with sound sensor?
@anasmmcochin
@anasmmcochin 5 жыл бұрын
Yes
@ganeshvarma3675
@ganeshvarma3675 5 жыл бұрын
Can u tell me the simulation u used
@divyanshsao9380
@divyanshsao9380 4 жыл бұрын
How to make this using mlx90614
@JATM1204
@JATM1204 4 жыл бұрын
Help, I have this error: 'DHT dht' previously declared here In this line: DHT dht(DHTPIN, DHTTYPE); Help Please
@e.s.6605
@e.s.6605 6 жыл бұрын
Im receiving this error and I dont know how to fix it: In file included from C:\Users\*****\OneDrive\Documents\Arduino\DHT11nodemcu\DHT11nodemcu.ino:34:0: BlynkSimpleEsp8266.h:18:21: error: version.h: No such file or directory #include
@mr.perfect4476
@mr.perfect4476 6 жыл бұрын
Plz make a video on uploding problems of ESP 01 WiFi module
@user-fo9ce3hr5h
@user-fo9ce3hr5h 5 жыл бұрын
How far can the cell phone or blnynk app can see the temperature?
@NeoPh03nix-lk8fc
@NeoPh03nix-lk8fc 4 жыл бұрын
anywhere on the world
@adityadubey9859
@adityadubey9859 5 жыл бұрын
can we use 2-3 separate sensor on single esp8266?
@anasmmcochin
@anasmmcochin 5 жыл бұрын
Nope.. only one analog sensor in esp 8266
@Gameplayer55055
@Gameplayer55055 5 жыл бұрын
Also you can use mqtt and adafruit.io Then you can make control with google assistant Ifttt
@akashkushwah9654
@akashkushwah9654 2 жыл бұрын
bro how to fix hard resetting rts pin problem
@tranvietlan8832
@tranvietlan8832 6 жыл бұрын
This code can use with esp32 ???
@Kot-Begemot-007
@Kot-Begemot-007 4 жыл бұрын
not working: exit status 1 Error compiling for board NodeMCU 1.0 (ESP-12E Module)
@MrSaravananSMKKB
@MrSaravananSMKKB 4 жыл бұрын
check if you have multiple libraries of the same DHT sensor
@DimitrijeMilenkovic86
@DimitrijeMilenkovic86 5 жыл бұрын
exit status 1 'DHT11' was not declared in this scope
@MrSaravananSMKKB
@MrSaravananSMKKB 4 жыл бұрын
Go under Library Manager, type DHT and enter You should see a library called "DHT sensor library". Install that and you should be good to go. Not resolved, let me know bro
@sandeepmanjarekar3708
@sandeepmanjarekar3708 4 жыл бұрын
There we got for 10 / 10 for my new project
@digxijay.r
@digxijay.r 4 жыл бұрын
There is no option of board of node MCU in tools->board Please help me fix it
@close2yah
@close2yah 4 жыл бұрын
Install esp8266 core i believe thats the library
@muhamadsyafiq4998
@muhamadsyafiq4998 4 жыл бұрын
cant with lcd i2c?
@abdulrahimanrahman3629
@abdulrahimanrahman3629 6 жыл бұрын
very nice bro. how much an arduino uno and nano costs bro?
@remixnationph5483
@remixnationph5483 4 жыл бұрын
Arduino: 1.8.12 (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), 4MB (FS:2MB OTA:~1019KB), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200" Project-1:34:32: fatal error: BlynkSimpleEsp8266.h: No such file or directory #include ^ compilation terminated. exit status 1 BlynkSimpleEsp8266.h: No such file or directory This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.
@MARS-GREENH0USE
@MARS-GREENH0USE 4 жыл бұрын
same here WHAT IS THE DEAL HERE, THEFILE EXISTS
@onkarbatra9884
@onkarbatra9884 3 жыл бұрын
Same
@HoaTran-nr7iq
@HoaTran-nr7iq 5 жыл бұрын
i don't see the link ....
@tiodolanche3945
@tiodolanche3945 5 жыл бұрын
Esse app gera o código ou você fez?
@billparker9295
@billparker9295 6 жыл бұрын
Have you removed the code? I can not download it.
@saivenkatesh4730
@saivenkatesh4730 5 жыл бұрын
Program got uploaded but wifi not getting connected ..what is the problem
@jocycylynn9612
@jocycylynn9612 5 жыл бұрын
can any type of NodeMcu ESP8266 used this tutorial??
@maxgroen2467
@maxgroen2467 5 жыл бұрын
I am not an expert, but I think as long as you select the correct device you should be fine
@michi_8756
@michi_8756 4 жыл бұрын
What is the app name
@vijaykoparde1275
@vijaykoparde1275 5 жыл бұрын
links are not opening.
@joekmj
@joekmj 4 жыл бұрын
Nice project, but i can't stop thingking to pay $166/ each month, is it worth?
@luisavila8421
@luisavila8421 6 жыл бұрын
hello I need some help with this problem Error Message Arduino: 1.8.8 (Mac OS X), Board: "NodeMCU 0.9 (ESP-12 Module), 80 MHz, Flash, Enabled, 4M (no SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 115200" In file included from /Users/avila/Documents/Arduino/libraries/DHT-sensor-library-master/DHT_U.cpp:22:0: /Users/avila/Documents/Arduino/libraries/DHT-sensor-library-master/DHT_U.h:25:29: fatal error: Adafruit_Sensor.h: No such file or directory #include ^ compilation terminated. exit status 1 Error compiling for board NodeMCU 0.9 (ESP-12 Module). This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences. my code #include //Viral science kzbin.info //Temperature sensor /************************************************************** * Blynk is a platform with iOS and Android apps to control * Arduino, Raspberry Pi and the likes over the Internet. * You can easily build graphic interfaces for all your * projects by simply dragging and dropping widgets. * * Downloads, docs, tutorials: www.blynk.cc * Blynk community: community.blynk.cc * Social networks: www.fb.com/blynkapp * twitter.com/blynk_app * * Blynk library is licensed under MIT license * This example code is in public domain. * ************************************************************** * This example shows how value can be pushed from Arduino to * the Blynk App. * * WARNING : * For this example you'll need SimpleTimer library: * github.com/jfturcot/SimpleTimer * and Adafruit DHT sensor library: * github.com/adafruit/DHT-sensor-library * * App project setup: * Value Display widget attached to V5 * Value Display widget attached to V6 * **************************************************************/ #define BLYNK_PRINT Serial // Comment this out to disable prints and save space #include #include #include #include #include // You should get Auth Token in the Blynk App. // Go to the Project Settings (nut icon). char auth[] = "e320b7b68bf24519aabdb7a726"; //Enter the Auth code which was send by Blink // Your WiFi credentials. // Set password to "" for open networks. char ssid[] = "E5D0_5=G"; //Enter your WIFI Name char pass[] = "21632"; //Enter your WIFI Password #define DHTPIN 2 // Digital pin 4 // Uncomment whatever type you're using! #define DHTTYPE DHT11 // DHT 11 //#define DHTTYPE DHT22 // DHT 22, AM2302, AM2321 //#define DHTTYPE DHT21 // DHT 21, AM2301 DHT dht(DHTPIN, DHTTYPE); SimpleTimer timer; // This function sends Arduino's up time every second to Virtual Pin (5). // In the app, Widget's reading frequency should be set to PUSH. This means // that you define how often to send data to Blynk App. void sendSensor() { float h = dht.readHumidity(); float t = dht.readTemperature(); // or dht.readTemperature(true) for Fahrenheit if (isnan(h) || isnan(t)) { Serial.println("Failed to read from DHT sensor!"); return; } // You can send any value at any time. // Please don't send more that 10 values per second. Blynk.virtualWrite(V5, h); //V5 is for Humidity Blynk.virtualWrite(V6, t); //V6 is for Temperature } void setup() { Serial.begin(9600); // See the connection status in Serial Monitor Blynk.begin(auth, ssid, pass); dht.begin(); // Setup a function to be called every second timer.setInterval(1000L, sendSensor); } void loop() { Blynk.run(); // Initiates Blynk timer.run(); // Initiates SimpleTimer }
@luisavila8421
@luisavila8421 6 жыл бұрын
update after 16 mins with the dht22 sensor library problem I found a solution WARNING : For this example you'll need Adafruit DHT sensor libraries: you need to install both github.com/adafruit/Adafruit_Sensor github.com/adafruit/DHT-sensor-library
@tanish991
@tanish991 5 жыл бұрын
What is the solution for fatal error?
5 жыл бұрын
Hi, there, that is lovely video. It is really clearly explained. Thumps up! ;) May I have a question.. What is the name of the editor that you use for simulation of the el. circuit. Looks intuitive and easy to use. Thanks a lot.
@tims246
@tims246 5 жыл бұрын
It's called fritzing
@mukul04sk
@mukul04sk 5 жыл бұрын
Can you please add another link for the source code and circuit.. The one above is not working.. Thanks!
@ViralScience
@ViralScience 5 жыл бұрын
Visit my website www.viralsciencecreativity.com for codes and circuit diagrams
@pratikyadav371
@pratikyadav371 2 жыл бұрын
Bro error Saying Leaving Hard resetting via RTS PIN
@anhkietnguyenbui2200
@anhkietnguyenbui2200 5 жыл бұрын
Name of the music in this video please.
@satyakisaha2704
@satyakisaha2704 5 жыл бұрын
the coding is not compiling and a error is coming that an error compiling in nodemce 1.0
@GamingChannel-wr7fv
@GamingChannel-wr7fv 2 жыл бұрын
blynk app not working .please send me blynk old version
@mesample1705
@mesample1705 4 жыл бұрын
I am disappointed. You probably have useful knowledge to share, but you need to devote more than 3:50 to do a good job.
@wilsonportillo9894
@wilsonportillo9894 4 жыл бұрын
me sale error me pide libreria simple timer
@mgomes32
@mgomes32 5 жыл бұрын
CODE not found....404 error
@eemhisolutions9287
@eemhisolutions9287 5 жыл бұрын
no circuit diagram
@eleccafe98
@eleccafe98 4 жыл бұрын
hey guys after few seconds app disconnect anyone can help me?
@MrAcil-me5fg
@MrAcil-me5fg 5 жыл бұрын
Hello link code broken
@adityataksande5024
@adityataksande5024 5 жыл бұрын
Can't find code sir can plzz resend it
@jmickbr
@jmickbr 5 жыл бұрын
Kd o circuito? refaça o link!
@metallicdude100
@metallicdude100 4 жыл бұрын
Hi Viral Science! I'm trying to make this project work , but, although I did everything as instructed in your video, and installed the libraries and drivers needed, I still get the "exit status 1 Error compiling for board NodeMCU 1.0 (ESP-12E Module)." error while compliling the program. Can you please help? Here is the code I'm tryin to upload: #define BLYNK_PRINT Serial // Comment this out to disable prints and save space #include #include #include #include #include // You should get Auth Token in the Blynk App. // Go to the Project Settings (nut icon). char auth[] = "mycode"; //Enter the Auth code which was send by Blink // Your WiFi credentials. // Set password to "" for open networks. char ssid[] = "myname"; //Enter your WIFI Name char pass[] = "mypassword"; //Enter your WIFI Password #define DHTPIN 2 // Digital pin 4 // Uncomment whatever type you're using! #define DHTTYPE DHT11 // DHT 11 //#define DHTTYPE DHT22 // DHT 22, AM2302, AM2321 //#define DHTTYPE DHT21 // DHT 21, AM2301 DHT dht(DHTPIN, DHTTYPE); SimpleTimer timer; // This function sends Arduino's up time every second to Virtual Pin (5). // In the app, Widget's reading frequency should be set to PUSH. This means // that you define how often to send data to Blynk App. void sendSensor() { float h = dht.readHumidity(); float t = dht.readTemperature(); // or dht.readTemperature(true) for Fahrenheit if (isnan(h) || isnan(t)) { Serial.println("Failed to read from DHT sensor!"); return; } // You can send any value at any time. // Please don't send more that 10 values per second. Blynk.virtualWrite(V5, h); //V5 is for Humidity Blynk.virtualWrite(V6, t); //V6 is for Temperature } void setup() { Serial.begin(9600); // See the connection status in Serial Monitor Blynk.begin(auth, ssid, pass); dht.begin(); // Setup a function to be called every second timer.setInterval(1000L, sendSensor); } void loop() { Blynk.run(); // Initiates Blynk timer.run(); // Initiates SimpleTimer }
@mohamedtamer5601
@mohamedtamer5601 2 жыл бұрын
I am having the same problem.
@ДиасЖапсар
@ДиасЖапсар 5 жыл бұрын
Please, made video with water sensor
What is Blynk and how does it work?
17:47
Csongor Varga
Рет қаралды 264 М.
10 Arduino Projects with DIY Step by Step Tutorials
5:30
How To Mechatronics
Рет қаралды 2,5 МЛН
Каха и дочка
00:28
К-Media
Рет қаралды 3,4 МЛН
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН
DHT11 Temperature Sensor With ESP8266 NodeMCU & Blynk
8:47
Sayan Electronics
Рет қаралды 10 М.
Magical 3D Prints for Christmas
12:20
Marc3DP
Рет қаралды 1 М.
New Blynk IOT Smart Plant Monitoring System
16:54
Viral Science - The home of Creativity
Рет қаралды 443 М.
ESP8266 + Arduino + database - Control Anything from Anywhere
13:51
Electronoobs
Рет қаралды 644 М.
ESP32 WiFi Range Testing - 10km using Directional Antenna
5:42
You can learn Arduino in 15 minutes.
16:34
Afrotechmods
Рет қаралды 10 МЛН
ESP32 DHT Web Server Project
5:53
Enjoy Mechatronics
Рет қаралды 136 М.