0% found this document useful (0 votes)
3 views

assignment-no-11

The document outlines an assignment to create an application that reads environmental temperature using a DHT11 sensor and notifies when a threshold is crossed. It includes hardware and software requirements, interfacing instructions, and a procedure for implementation using Arduino. The final output displays minimum and maximum temperature readings on the serial port.

Uploaded by

nerkardigambar8
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)
3 views

assignment-no-11

The document outlines an assignment to create an application that reads environmental temperature using a DHT11 sensor and notifies when a threshold is crossed. It includes hardware and software requirements, interfacing instructions, and a procedure for implementation using Arduino. The final output displays minimum and maximum temperature readings on the serial port.

Uploaded by

nerkardigambar8
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/ 3

Assignment No.

A4

 Aim: Write an application to read temperature from the environment. If


temperature crosses threshold value then it notifies with buzzer.

 Outcome: Temperature sensor Connectivity, configuration and serial


communication with Arduino.

 Hardware Requirement:
 Arduino board –
 Breadboard.
 Some male-female wires.
 DHT 11 temperature sensor
 Arduino, USB cable etc.

● Software Requirement: Arduino IDE

● Theory:
Pinout of DHT11 Sensor
The DHT11 typically comes with a 4-pin package, although only three of them are
functionally used:

1. VCC (Pin 1): This is the power supply pin, which can accept voltages from 3.3V to
5V, making it compatible with most microcontroller systems.
2. Data (Pin 2): This is the pin through which the DHT11 communicates. It uses a
proprietary single-wire protocol to transmit temperature and humidity data to the
connected microcontroller.
3. NC (Pin 3): Not connected or used.
4. GND (Pin 4): Ground pin, used to complete the circuit.

 Interfacing DHT11 Sensor with Arduino


Let us interface the DHT11 Humidity Temperature Sensor with Arduino UNO.
Hardware Connection
The connection diagram is pretty simple as shown in the image below.

Connect the VCC & GND Pin of DHT11 Sensor Module to 3.3V & GND pin of Arduino
respectively. Similarly connect the DHT11 Data pin to Arduino Digital Pin 2.

For finding out the minimum and maximum temperature we need to compare the temperature
measured in every turn with the previously measured temperature . for comparison If loop is
used

e. g

if (f > tfmax)
{
tfmax = f;
}
if (f < tfmin)
{
tfmin = f;
}

Where tfmax is max temperature in Fahrenheit and tfmin is minimum temperature in


minimum

Procedure :

You need to follow these instructions to make it work:

1. You need to add the DHT library to the Arduino IDE.

2. Upload the code.

3. When the code is uploaded, open the Serial Monitor and set the baud rate to 9600.

4. You will see the humidity and temperature.


Program:

Output: Minimum and maximum temperature can be seen on serial port

Conclusion

You might also like