0% found this document useful (0 votes)
18 views4 pages

Iot 6

This experiment aims to interface an Arduino board with a DHT11 temperature and humidity sensor in real-time. The required components are an Arduino board, breadboard, jumper wires, DHT11 sensor, and a power supply. The DHT11 sensor measures temperature and humidity using an NTC sensor and resistive element connected to a microcontroller. It then outputs a digital signal. The Arduino code reads the DHT11 pin, prints the current temperature and humidity to the serial monitor, and repeats every 2 seconds.

Uploaded by

hustle bustle
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views4 pages

Iot 6

This experiment aims to interface an Arduino board with a DHT11 temperature and humidity sensor in real-time. The required components are an Arduino board, breadboard, jumper wires, DHT11 sensor, and a power supply. The DHT11 sensor measures temperature and humidity using an NTC sensor and resistive element connected to a microcontroller. It then outputs a digital signal. The Arduino code reads the DHT11 pin, prints the current temperature and humidity to the serial monitor, and repeats every 2 seconds.

Uploaded by

hustle bustle
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Experiment 6

Aim: Interfacing of Arduino with temperature and humidity sensor with real time
application.

Components Required:
• Arduino Board
• Breadboard
• Jumper Wires
• DH11 Temperature and Humidity Sensor
• USB or 5V Power Supply

DH11 Sensor:
DHT11 Module features a temperature & humidity sensor complex with a calibrated digital
signal output. The exclusive digital-signal-acquisition technique and temperature & humidity
sensing technology ensure high reliability and excellent long-term stability. This sensor
includes an NTC for temperature measurement and a resistive-type humidity measurement
component for humidity measurement. These are connected to a high-performance 8-bit
microcontroller, offering excellent quality, fast response, anti-interference ability, and cost-
effectiveness.
Circuit Diagram for Interfacing DHT11 Sensor with Arduino:

CODE:
#include <dht.h>

dht DHT;

#define DHT11_PIN 2
void setup()
{
serial.begin(9600);
} void
loop(){
int chk = DHT.read11(DHT11_PIN);
Serial.print("Temprature =");
Serial.println(DHT.temprature);
Serial.print("Humidity =");
Serial.println(DHT.humidity);
delay(2000);
}

OUTPUT:

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy