Kaustubh Agarwal
Published © GPL3+

Room temperature sensor with display on Mobile

A project that displays the temperature and humidity of a room on your mobile in real time.

BeginnerShowcase (no instructions)1 hour48,219
Room temperature sensor with display on Mobile

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
DHT11 Temperature & Humidity Sensor (4 pins)
DHT11 Temperature & Humidity Sensor (4 pins)
×1
Jumper wires (generic)
Jumper wires (generic)
×1
Arduino Ethernet shield
×1
USB-A to B Cable
USB-A to B Cable
×1
Android device
Android device
×1
Breadboard (generic)
Breadboard (generic)
×1

Software apps and online services

Arduino IDE
Arduino IDE
Blynk
Blynk

Story

Read more

Schematics

Dht11 Schematic

Code

Room temperature

Arduino
#include <SPI.h>
#define BLYNK_PRINT Serial
#include <Ethernet.h>
#include <BlynkSimpleEthernet.h>
#include <SimpleTimer.h>
#include <dht11.h>
dht11 DHT11;
SimpleTimer timer;

char auth[] = "";        // write your auth code here
void setup()
{
  DHT11.attach(2);      // connect pin 2 to the sensor
  Serial.begin(9600);
  Blynk.begin(auth);     // start blynk server and connect to the cloud
 while (Blynk.connect() == false) {
    // Wait until connected
  }
  
void loop()
{
  int chk = DHT11.read();
   Blynk.virtualWrite(1, DHT11.temperature);  // Write values to the app
  Blynk.virtualWrite(2, DHT11.humidity);
Serial.println(DHT11.temperature);

  Blynk.run();
  timer.run();
  
}

Credits

Kaustubh Agarwal

Kaustubh Agarwal

14 projects • 193 followers
IoT Enthusiast SDE@ASML

Comments