Surilli
Published © LGPL

How to Develop Application on BLYNK and Monitor Temperature

Develop mobile application on BLYNK, and monitor temperature on your mobile.

BeginnerFull instructions provided30 minutes2,015
How to Develop Application on BLYNK and Monitor Temperature

Things used in this project

Hardware components

Jumper wires (generic)
Jumper wires (generic)
×1
Breadboard (generic)
Breadboard (generic)
×1
Surilli WiFi
Surilli WiFi
×1
DHT11 Temperature & Humidity Sensor (4 pins)
DHT11 Temperature & Humidity Sensor (4 pins)
×1

Software apps and online services

Arduino IDE
Arduino IDE
Blynk
Blynk

Story

Read more

Code

Blynk

C/C++
#include <BlynkSimpleEsp8266.h> //include Blynk library
#include <dht.h> //include temp sensor library
#define dht_apin 4 // Analog Pin sensor is connected to pin 4 
dht DHT; 
char auth[] = "********************"; //Enter the authentication code
char ssid[] = "**********"; //Enter the name of your wifi
char pass[] = "**********"; //Enter password of your wifi
void setup(){ 
Blynk.begin(auth, ssid, pass);
Serial.begin(9600); 
delay(500); //Delay to let system boot 
}  
void loop()
{ 
Blynk.run();
Blynk.syncAll();
Blynk.virtualWrite(V0, DHT.temperature); //write value of temp to V0 pin
Blynk.virtualWrite(V1, DHT.humidity); //write value of humidity to !1 pin
DHT.read11(dht_apin); 
}

Credits

Surilli

Surilli

196 projects • 64 followers
Surilli is a premiere Internet of Things centric Technology Company aimed at providing cutting edge innovative solutions.

Comments