the_com3_port
Published

How to use DHT11

DHT11 Tutorial, That is all I got to say.

BeginnerFull instructions provided116
How to use DHT11

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
REQUIRED
×1
Resistor 10k ohm
Resistor 10k ohm
REQUIRED
×1
DHT11 Temperature & Humidity Sensor (4 pins)
DHT11 Temperature & Humidity Sensor (4 pins)
REQUIRED
×1
Breadboard (generic)
Breadboard (generic)
REQUIRED
×1
Jumper wires (generic)
Jumper wires (generic)
REQUIRED
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

Schematic

Circuit Schematic

Schematic

A photo of the Schematic you need to follow

Code

Code

Arduino
Curcuit Code
#include <DHT.h>
DHT sensor (13, DHT11);
void setup() {
  // put your setup code here, to run once:
  Serial.begin(9600);
}
float temp;
float humi;
void loop() {
  // put your main code here, to run repeatedly:
  temp = sensor.readTemperature();
  humi = sensor.readHumidity();
  Serial.print(temp);
  Serial.print(" Celcius, ");
  Serial.print(humi);
  Serial.print("% Humidity\n");
  delay(1560);
  Serial.println("-----------------");
}

Credits

the_com3_port
2 projects • 0 followers
Contact

Comments

Please log in or sign up to comment.