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

1,116

11

5

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

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: 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!

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/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)

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

Step 3: 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)
lcd.clear();
lcd.setCursor(0,0);
lcd.print("Humidity = ");
lcd.print(sensor.humidity);
lcd.setCursor(0,1);
lcd.print("Temp = ");
lcd.print(sensor.temperature);
}

Recommendations

• Large Motors Class

13,422 Enrolled

5 Discussions

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.