• Skip to main content
  • Skip to primary sidebar

Homemade Circuit Projects

Need circuit help? Post them in the comments! I've answered over 50,000!

Blog | Categories | About | Contact | Calculators-online
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

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

Table of Contents
  • Introduction
  • Prototype Image:
  • The Design:
  • Program Code

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:

P 20160630 213616 1

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.  How to Measure Gain (β) of a BJT
  • 2.  Transformerless AC Voltmeter Circuit Using Arduino
  • 3.  Simple Transformer Winding Tester Circuit
  • 4.  Bicycle Speedometer Circuit
  • 5.  Simple Arduino Digital Ohmmeter Circuit
  • 6.  Simple Frequency Meter Circuits – Analogue Designs

About Swagatam

I am an electronics engineer with over 15 years of hands-on experience. I am passionate about inventing, designing electronic circuits and PCBs, and helping hobbyists bring their projects to life. That is why I founded homemade-circuits.com, a website where I share innovative circuit ideas and tutorials. Have a circuit related question? Leave a comment.... I guarantee a reply!

Previous Post: « Interfacing DHTxx Temperature Humidity Sensor with Arduino
Next Post: 7 Best Touch Sensor Switch Circuits Explored »

Reader Interactions

Comments

  1. Peter Brownlow says

    September 1, 2022 at 4:10 pm

    Hi.
    I’m virtually completely new to modern electronics and Arduino, but am interested in constructing the Humidity meter, with the sensor built into a separate remote probe and connected to the Arduino by some sort of flexible lead.
    For the remote, is it just a question of using a length of 3 core cable and appropriate connectors, and if so what connectors are available? Is there a restriction on the cable length due to resistance etc? Is a 16 x 2 lcd display a standard item? Any advice on where in the UK to obtain all this stuff, please?
    Can you recommend a website for learning the basics of the Arduino and its programming, suitable for a technically minded, reasonably intelligent 75 year old, relative beginner, please?
    Any other constructive comments appreciated.
    Thanks.

    Reply
    • Swagatam says

      September 1, 2022 at 6:18 pm

      Hi,
      You can use a 3 core cable for the sensor, but this cable must be a shielded type cable. Any 3 pin connector will work which can tightly fit into the Arduino connector. The cable length should not be too long, not more than a couple of feet.
      All the items shown in the diagram are standard items which can be procured from any good electronic spare part retailer.
      Learning Arduino can be long process which will require a lot of understanding of the variables and then a lot of practice through practical experiments.
      There are actually plenty of only tutorials that you search an get online.
      In this website also there is one such tutorial which you can refer to for gaining some basic knowledge:
      https://www.homemade-circuits.com/learning-basic-arduino-programming-tutorial-for-the-newcomers/

      Reply

Need Help? Please Leave a Comment! We value your input—Kindly keep it relevant to the above topic! Cancel reply

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

Primary Sidebar

Subscribe to New Circuit Ideas

Categories

  • Arduino Projects (87)
  • Audio and Amplifier Projects (132)
  • Automation Projects (17)
  • Automobile Electronics (101)
  • Battery Charger Circuits (83)
  • Datasheets and Components (104)
  • Electronics Theory (143)
  • Free Energy (37)
  • Games and Sports Projects (11)
  • Grid and 3-Phase (19)
  • Health related Projects (25)
  • Home Electrical Circuits (12)
  • Indicator Circuits (14)
  • Inverter Circuits (87)
  • Lamps and Lights (142)
  • Meters and Testers (69)
  • Mini Projects (46)
  • Motor Controller (64)
  • Oscillator Circuits (27)
  • Pets and Pests (15)
  • Power Supply Circuits (108)
  • Remote Control Circuits (50)
  • Security and Alarm (64)
  • Sensors and Detectors (101)
  • Solar Controller Circuits (59)
  • Temperature Controllers (42)
  • Timer and Delay Relay (49)
  • Transmitter Circuits (29)
  • Voltage Control and Protection (37)
  • Water Controller (36)

Calculators

  • 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
  • Transistor Astable Calculator
  • Transistor base Resistor Calculator
  • Voltage Divider Calculator
  • Wire Current Calculator
  • Zener Diode Calculator
  • Filter Capacitor Calculator
  • Buck Converter Calculator
  • Boost Converter Calculator
  • Solar Panel, Inverter, Battery Calculator
  • Wire Current Calculator
  • SMPS Transformer Calculator
  • IC SG3525, SG3524 Calculator
  • Inverter LC Filter Calculator

People Also Search

555 Circuits | 741 Circuits | LM324 Circuits | LM338 Circuits | 4017 Circuits | Ultrasonic Projects | SMPS Projects | Christmas Projects | MOSFETs | Radio Circuits | Laser Circuits | PIR Projects |

Recent Comments

  • Swagatam on EGS002 Datasheet, Circuit Diagram Explained
  • Swagatam on How to Make IC LM339 Circuits
  • Swagatam on How to Make Dog Barking Preventer Circuit using High Frequency Deterrence
  • Swagatam on How to Buy and Use RF Remote Control Modules – Control Any Electrical Gadget Remotely
  • Swagatam on How to Generate PWM Using IC 555 (2 Methods Explored)

Company

  • Privacy Policy
  • Cookie Policy
  • About Me
  • Contact
  • Disclaimer
  • Copyright
  • Videos
  • Sitemap

Social Profiles

  • Twitter
  • YouTube
  • Instagram
  • Pinterest
  • My Facebook-Page
  • Quora
  • Stack Exchange
  • Linkedin
  • © 2025 · Swagatam Innovations