Fouad_Roboticist
Published

Temperature & Humidity Sensing

Adding humidity and temperature data to your DIY electronics projects sound interesting most of the time!

BeginnerFull instructions provided651
Temperature & Humidity Sensing

Things used in this project

Hardware components

Arduino UNO & Genuino UNO
Arduino UNO & Genuino UNO
×1
DHT11 Temperature & Humidity Sensor (3 pins)
DHT11 Temperature & Humidity Sensor (3 pins)
×1

Software apps and online services

Arduino IDE
Arduino IDE

Hand tools and fabrication machines

Premium Female/Male Extension Jumper Wires, 40 x 6" (150mm)
Premium Female/Male Extension Jumper Wires, 40 x 6" (150mm)

Story

Read more

Custom parts and enclosures

Components Required

Hardware Assembling

Schematics

Circuit Diagram

VCC-5V
GND - GND
DATA - PIN 2 Arduino

Collecting Data

Temperature & Humidity Variation

Code

DHT.ino

Arduino
#include <dht.h>

dht DHT;

#define DHT11_PIN 2

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);
}

Credits

Fouad_Roboticist

Fouad_Roboticist

1 project • 1 follower

Comments