current room temperature with arduino

It is simple basic arduino project

you need

Arduino Uno

Dht 11 temperature & humidity sensor

data cable & jumper wire

 Please watch this video


connection diagram

arduino code



#include <dht.h>

dht DHT;

#define DHT11_PIN 7

void setup(){
  Serial.begin(9600);
}

void loop()
{
  int chk = DHT.read11(DHT11_PIN);
  Serial.print("Temperature = ");
  Serial.println(DHT.temperature);
  Serial.print("Humidity = ");
  Serial.println(DHT.humidity);
  delay(1000);
}





Comments

Popular posts from this blog

how to make 4x4x4 led cube using arduino

Connection & wiring of 24 v electric bi -cycle By Techno review 85

Raspberry pi 3.5 inch LCD screen setup & install driver