devansh_tangri
Published © GPL3+

IoT Temperature and Humidity Monitor using Blynk app

This project focuses on monitoring things over the internet using sensors connected to Arduino with Wi-Fi connection through ESP8266

IntermediateFull instructions provided261

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
Any Arduino Board will work as Blynk app supports them all
×1
ESP8266 ESP-01
Espressif ESP8266 ESP-01
×1
DHT11 Temperature & Humidity Sensor (3 pins)
DHT11 Temperature & Humidity Sensor (3 pins)
×1
Jumper wires (generic)
Jumper wires (generic)
×1

Software apps and online services

Arduino IDE
Arduino IDE
Blynk
Blynk

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)

Story

Read more

Schematics

Connection Diagram

Connection Diagram Fritzing File

Code

Arduino Code

Arduino
#define BLYNK_AUTH_TOKEN            "Your_Authorization_Token" 
#define BLYNK_PRINT Serial
#include <ESP8266_Lib.h>
#include <BlynkSimpleShieldEsp8266.h>
#include "dht.h"
#define dht_apin A0

char auth[] = BLYNK_AUTH_TOKEN;
char ssid[] = "your_SSID";
char pass[] = "your_password";
dht DHT;
int T, H;

#define EspSerial Serial1
#define ESP8266_BAUD 115200

ESP8266 wifi(&EspSerial);

BlynkTimer timer;

void myTimerEvent()
{
  DHT.read11(dht_apin);
  T = DHT.temperature;
  H = DHT.humidity;
  Blynk.virtualWrite(V0, T);
  Blynk.virtualWrite(V1, H);
}

void setup()
{
  Serial.begin(115200);
  EspSerial.begin(ESP8266_BAUD);
  delay(10);
  Blynk.begin(auth, wifi, ssid,pass); //Comment this if you're using Local Server
  //If you have your Local Blynk Server then uncomment this statement --> Blynk.begin(auth, wifi, ssid, pass, "Your_Machine's_IP_Address", 8080);   //Use your server's port if this doesn't work

  timer.setInterval(100L, myTimerEvent);
}

void loop()
{
  Blynk.run();
  timer.run(); 
}

Credits

devansh_tangri

devansh_tangri

2 projects • 1 follower
I'm a 17 yo student, making Arduino Projects and Electrical Circuits is my favorite hobby. I have been making circuits for about 8 years.

Comments

Add projectSign up / Login