• Skip to main content
  • Skip to primary sidebar

Homemade Circuit Projects

Get free circuit help 24/7

New Projects | Privacy Policy | About us | Contact | Disclaimer | Copyright | Videos | Circuits for Beginners | Basic Circuits | Hobby Projects | Transistor Circuits | LED Drivers 

You are here: Home / Meters and Testers / Make this Digital Temperature, Humidity Meter Circuit using Arduino

Make this Digital Temperature, Humidity Meter Circuit using Arduino

Last Updated on August 2, 2019 by Swagatam 2 Comments

caution electricity can be dangerous

In our previous article, we learned how to interface temperature humidity sensor with arduino and read out displayed on serial monitor of arduino IDE. In this post we are going to learn how to display the reading on a 16x2 LCD display for the proposed digital temperature/humidity meter using Arduino.

Introduction

This project may be used as room thermometer as well as humidity meter, since both the functionality is integrated into one sensor.

If you haven’t read the previous article yet, please check it out. It covered the basics of DHTxx series sensors.

Now, you know quite a bit about DHTxx sensors. It is better to use DHT22 sensor for projects which you are going to use for long term.

Prototype Image:

Working prototype for a Digital Temperature, Humidity Meter Circuit

The Design:

The connection between LCD and arduino is standard, where you can find similar connection on other LCD based projects.

The program is written in such a way that, you just need to insert the DHT11 into the right port on the Arduino. This will reduce wire congestion during prototyping this project.

If you want to sense the ambient temperature around some area/circuit you may extent the wires from the sensor. So that you’re whole setup may be made inside a junk box and sensor is extended out of the junk box, like a probe.

Digital Temperature, Humidity Meter Circuit using Arduino

You can use your favorite Arduino board for this project, but my suggestion is to use “Arduino pro mini” which is less expensive and small in size, which could easily fit into a small junk box for such simple projects.

There are lots of error detection mechanisms written in the DHT library to inform the user about error. But to make the program simple I have just added one error detection mechanism which is illustrated below:

Mostly errors are due to faulty connection between sensor and arduino other errors less likely to occur, since tiny amount of data is transferred between arduino and sensor. This doesn’t mean that other kind of error won’t occur.

To get an idea about all kind of error associated with this sensor, please check out example code in “DHTlib”.

Program code for the above explained digital temperature, humidity meter using Arduino :

Program Code

//------------------Program developed by R.Girish-----------------//
#include <LiquidCrystal.h>
#include <dht.h>
dht DHT;
LiquidCrystal lcd(12,11,5,4,3,2);
#define DHTxxPIN A1
int p = A0;
int n = A2;
int ack;
int f;
void setup()
{
lcd.begin(16,2);
pinMode(p,OUTPUT);
pinMode(n,OUTPUT);
}
void loop()
{
digitalWrite(p,1);
digitalWrite(n,0);
ack=0;
int chk = DHT.read11(DHTxxPIN);
switch (chk)
{
case DHTLIB_ERROR_CONNECT:
ack=1;
break;
}
if(ack==0)
{
f=DHT.temperature*1.8+32;
lcd.clear();
lcd.setCursor(0,0);
lcd.print("Temp:");
lcd.print(DHT.temperature);
lcd.print("C/");
lcd.print(f);
lcd.print("F");
lcd.setCursor(0,1);
lcd.print("Humidity:");
lcd.print(DHT.humidity);
lcd.print("%");
delay(500);
}
if(ack==1)
{
lcd.clear();
lcd.setCursor(0,0);
lcd.print("NO DATA, Please");
lcd.setCursor(0,1);
lcd.print("check connection");
delay(500);
}

}
//------------------Program developed by R.Girish-----------------//

Note: The program is compatible only with DHT11 sensor

You'll also like:

  • 1.  Homemade Inductance Meter Circuit
  • 2.  How to Make a Digital Voltmeter, Ammeter Module Circuits
  • 3.  Simple MOSFET Tester and Sorter Circuit
  • 4.  How to Measure AC Milli-volts Using IC 741
  • 5.  Arduino Frequency Meter Using 16×2 Display
  • 6.  10 Useful Function Generator Circuits Explained

About Swagatam

I am an electronic engineer (dipIETE ), hobbyist, inventor, schematic/PCB designer, manufacturer. I am also the founder of the website: https://www.homemade-circuits.com/, where I love sharing my innovative circuit ideas and tutorials.
If you have any circuit related query, you may interact through comments, I'll be most happy to help!

Have Questions? Please Comment below to Solve your Queries! Comments must be Related to the above Topic!!

Subscribe
Notify of
2 Comments
Newest
Oldest
Inline Feedbacks
View all comments

Primary Sidebar

Calculators

  • 3-Phase Power (15)
  • 324 IC Circuits (19)
  • 4017 IC Circuits (52)
  • 4060 IC Circuits (25)
  • 555 IC Circuits (98)
  • 741 IC Circuits (19)
  • Arduino Engineering Projects (83)
  • Audio and Amplifier Projects (114)
  • Battery Chargers (82)
  • Car and Motorcycle (94)
  • Datasheets (46)
  • Decorative Lighting (Diwali, Christmas) (33)
  • Electronic Components (100)
  • Electronic Devices and Circuit Theory (36)
  • Electronics Tutorial (116)
  • Fish Aquarium (5)
  • Free Energy (34)
  • Fun Projects (13)
  • GSM Projects (9)
  • Health Related (20)
  • Heater Controllers (29)
  • Home Electrical Circuits (102)
  • How to Articles (20)
  • Incubator Related (6)
  • Industrial Electronics (28)
  • Infrared (IR) (40)
  • Inverter Circuits (98)
  • Laser Projects (12)
  • LED and Light Effect (93)
  • LM317/LM338 (21)
  • LM3915 IC (25)
  • Meters and Testers (65)
  • Mini Projects (148)
  • Motor Controller (67)
  • MPPT (7)
  • Oscillator Circuits (26)
  • PIR (Passive Infrared) (8)
  • Power Electronics (34)
  • Power Supply Circuits (77)
  • Radio Circuits (10)
  • Remote Control (48)
  • Security and Alarm (61)
  • Sensors and Detectors (120)
  • SG3525 IC (5)
  • Simple Circuits (75)
  • SMPS (29)
  • Solar Controllers (60)
  • Timer and Delay Relay (53)
  • TL494 IC (5)
  • Transformerless Power Supply (8)
  • Transmitter Circuits (40)
  • Ultrasonic Projects (16)
  • Water Level Controller (45)

Calculators

  • AWG to Millimeter Converter
  • Battery Back up Time Calculator
  • Capacitance Reactance Calculator
  • IC 555 Astable Calculator
  • IC 555 Monostable Calculator
  • Inductance Calculator
  • LC Resonance Calculator
  • LM317, LM338, LM396 Calculator
  • Ohm’s Law Calculator
  • Phase Angle Phase Shift Calculator
  • Power Factor (PF) Calculator
  • Reactance Calculator
  • Small Signal Transistor(BJT) and Diode Quick Datasheet
  • Transistor Astable Calculator
  • Transistor base Resistor Calculator
  • Voltage Divider Calculator
  • Wire Current Calculator
  • Zener Diode Calculator

© 2023 · Swagatam Innovations

wpDiscuz