Introduction: How to Make a Temperature and Humidity Sensor Using an Arduino Nano.

Picture of How to Make a Temperature and Humidity Sensor Using an Arduino Nano.

Hey guys,today we are gonna make a temperature/humidity sensor using an Arduino Nano.

Step 1: How to Measure Temperature and Humidity Using an Arduino Nano and a DHT 11 Sensor

Picture of How to Measure Temperature and Humidity Using an Arduino Nano and a DHT 11 Sensor

In this instructable, I will show you how to make a temperature and humidity sensor using an Arduino nano and a DHT 11 sensor.
Lets get started!

Step 2: Order Your Components:

Picture of Order Your Components:

Amazon:
https://www.amazon.com/DIYmall-Temperature-Relative-Humidity-Arduino/dp/B014VS3BR0/ref=sr_1_1?ie=UTF8&qid=1484672245&sr=8-1&keywords=DHT+11+Sensor (dht 11 sensor)

https://www.amazon.com/eBoot-Experiment-Solderless-Breadboard-400-Points/dp/B01MG5IPUX/ref=sr_1_1?ie=UTF8&qid=1484672340&sr=8-1-spons&keywords=Breadboard&psc=1 (Breadboard)

https://www.amazon.com/Boundto-120pcs-Multicolored-Female-Breadboard/dp/B00ZWEFWO8/ref=sr_1_2?ie=UTF8&qid=1484672373&sr=8-2-spons&keywords=Jumper+wires&psc=1 (jumper wires)

https://www.amazon.com/Watt-Carbon-Film-Resistors-pack/dp/B00EV2Q30E/ref=sr_1_3?ie=UTF8&qid=1484672469&sr=8-3&keywords=220+ohm+resistor (220 ohm resistor)

https://www.amazon.com/Arducam-Display-Controller-Character-Backlight/dp/B019D9TYMI/ref=sr_1_1?ie=UTF8&qid=1484672546&sr=8-1&keywords=16x2+LCD(16x2 LCD Display)

https://www.amazon.com/s/ref=nb_sb_noss_2?url=search-alias%3Daps&field-keywords=Arduino+nano(Arduino nano)

https://www.amazon.com/Uxcell-a13061400ux0444-Adjustment-Single-Potentiometer/dp/B00E1IKGC4/ref=sr_1_2?ie=UTF8&qid=1484672717&sr=8-2&keywords=10k+potentiometers (10k potentiometer)

Oh!I forgot to name the components.so the components required for this build are:
1xDHT 11 Sensor(the PCB one)
1x220 ohm resistor
1xBreadboard
1x10K potentiometer
1xArduino nano
Some jumper wires for connections









Step 3: The Schematic:

Picture of The Schematic:

Build the circuit!

Step 4: The Code:

#include
#include

LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
int greenPin = A0;
dht sensor;

void setup()
{
lcd.begin(16,2); //16 by 2 character display
}

void loop()
{
delay(1000); //wait a sec (recommended for DHT11)
sensor.read11(greenPin);
lcd.clear();
lcd.setCursor(0,0);
lcd.print("Humidity = ");
lcd.print(sensor.humidity);
lcd.setCursor(0,1);
lcd.print("Temp = ");
lcd.print(sensor.temperature);
}

Step 5: Success!

Picture of Success!

Comments

The creator sid (author)2017-01-20

I am very sad to say that I cannot upload instructables for some time cuz my Arduino nano got burned when I was working on my new project.

Have you purchased another nano yet???

markcnz made it! (author)2017-01-28

Sorry to say but the code did not work for me.

The include statements left off the library names
The variable setting for dht sensor should start with float. This means any reference to sensor variable threw an error as sensor was not set.
Reading from the pin11 did not work

I used this one instead https://create.arduino.cc/projecthub/ThothLoki/por...

The creator sid (author)2017-01-17

My new instructable about how to make a T.V Remote Jammer will be coming soon.Stay creative!

The creator sid (author)2017-01-17

I am glad you liked it:)
Thanks

Swansong (author)2017-01-17

Thanks for sharing :)

About This Instructable

402views

11favorites

License:

Bio: I love electronics and Arduino.Stay creative!
More by The creator sid :Arduino(nano) Clap SwitchHow to make a 0-9 counter using an Arduino NanoHow to Make a Dark Sensor
Add instructable to: