Home
About Us
Achievement
Home
Raspberry-Pi Projects
_Raspberry Pi 4 Complete Guide
Arduino Project
_All Projects
Esp8266 Project
_All Projects
Esp32 Project
_Automation-with-feedback
Blynk ESP01 DHT11 Temperature Sensor
Just Do Electronics
April 03, 2020
Circuit Diagram :-
Code :-
//Prateek //www.prateeks.in #define BLYNK_PRINT Serial #include
#include
#include
#include
#include
char auth[] = "6497f4ca052e438e7157926730"; char ssid[] = "justdoelectronics"; //Enter your WIFI Name char pass[] = "pratik123"; //Enter your WIFI Password #define DHTPIN 0 #define DHTTYPE DHT11 DHT dht(DHTPIN, DHTTYPE); SimpleTimer timer; 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; } Blynk.virtualWrite(V1, h); //V5 is for Humidity Blynk.virtualWrite(V2, 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 }
0 Comments
Newer
Older
ESP32 Led Blink With Push Button
ESP32 Interfacing With LDR Sensor
How To Make RFID & Keypad Based Door Lock
ESP32 And Fingerprint Sensor Based Biometric Door Lock Security System
Arduino WorkShop
How to Make Gas Leak Detector & Auto Exhaust Fan Using Arduino
Vehicle Accident Alert System Using Accelerometer GPS And GSM
ESP32 Interfacing With Ultrasonic Sensor
Door Lock Security System Using Arduino
Plant Watering System With The ESP8266 | Blynk App
YouTube
Like on Facebook
Follow on Twitter
Follow on Google+
Follow on Instagram
Subscribe on Youtube
Hi WelCome To My Website If you have a creative mind and want to learn Electronics even without studying it then FRIENDS this Website And Youtube Channel is for you, I am crazy creators who love making Electronics things. I have a bunch of more than 130 Tutorial Videos on My YouTube Channel and I upload a new Tutorial every Sunday.
Tags
Arduino Project
Esp32 Project
Esp8266 Project
0 Comments