Temperature Measurement using DHT11and Arduino Program with Component Connection

Objective:

         To measure the amount of temperature and moisture content present in the atmosphere

Components Required

  • Arduino Uno
  • Temperature & Moisture Sensor (DHT-11)

Connection Diagram

Program

#include <DHT.h>

#define DHTtype DHT11

DHT dht(DHTpin, DHTtype);

uint8_t temperature, humid, DHTpin=5;

void setup()

{

Serial.begin(9600);

pinMode(DHTpin,INPUT);

dht.begin();

lcd.begin();

}

void loop()

{

temperature = dht.readTemperature();

humid= dht.readHumidity();

Serial.print(“Temperature Value is :”);

Serial.print(temperature);

Serial.print(“Humidity Value is :”);

Serial.print(humid);

Serial.println(“ppm”);

}

Working

         The Temperature sensor is nothing but a thermistor whose resistance changes in accordance with the temperature. The change in resistance varies the amount of current flow through it and there by the voltage also.

Output

Room Temperature : 28 C

Moisture Content : 30 ppm

Note : Install DHT11.h Library

Interfacing DC Motor with Arduino Uno Program with Component Connection
Arduino – Push Button- Buzzer Activation Program with Component Connection

Leave a Reply

Your email address will not be published. Required fields are marked *

Navigation

My Cart

Close
Viewed

Recently Viewed

Close

Great to see you here !

Your personal data will be used to support your experience throughout this website, to manage access to your account, and for other purposes described in our privacy policy.

Already got an account?

Quickview

Close

Categories