Introduction: Arduino - Temp and Humidity DHT11 + LCD 1602A - KY-015 Sensor

Picture of Arduino - Temp and Humidity DHT11 + LCD 1602A - KY-015 Sensor

Hello world! Today i made another example for one of the bunch of sensor that i have.

This time i made a simple weather station with the DHT11 (ky-015) and the LCD 1602A.

Note!

If you are using a I2C on the LCD screen i already set the lines in the CODE for you.

Just follow the steps in the Code to make it work with a I2C, make sure you set the Right I2C address in the code.

Here are the most common I2C addresses.

i2C Addresses:

PCF8574 = 0x20,

PCF8574A = 0x38,

PCF8574AT = 0x3F

Check the following step for the Schematic Code and Parts list!

Step 1: Schematic Code & Parts List.

Picture of Schematic Code & Parts List.

Parts List.

  1. Arduino Uno, I used a RobotDyn Uno which has 7 analog pins instead of 5.
  2. Potentiometer 10k
  3. KY-015 dht11
  4. LCD 1602A (You do not need a I2C on it, by default the code is without I2C)
  5. set of Jumper wires MM/FF/MF.

Good luck!

Comments

jeflea2768 (author)2017-04-04

Not sure if anyone still monitors this, but I keep getting errors....any idea how to fix it?

Arduino: 1.8.2 (Windows 10), Board: "Arduino/Genuino Uno"

C:\Users\trapt\Documents\Arduino\libraries\Adafruit_CircuitPlayground\utility\Adafruit_CPlay_Mic.cpp: In member function 'int Adafruit_CPlay_Mic::peak(uint16_t)':

C:\Users\trapt\Documents\Arduino\libraries\Adafruit_CircuitPlayground\utility\Adafruit_CPlay_Mic.cpp:27:37: error: 'analogPinToChannel' was not declared in this scope

channel = analogPinToChannel(4); // Pin A4 to ADC channel

^

C:\Users\trapt\Documents\Arduino\libraries\Adafruit_CircuitPlayground\utility\Adafruit_CPlay_Mic.cpp: In member function 'void Adafruit_CPlay_Mic::capture(int16_t*, uint8_t)':

C:\Users\trapt\Documents\Arduino\libraries\Adafruit_CircuitPlayground\utility\Adafruit_CPlay_Mic.cpp:84:37: error: 'analogPinToChannel' was not declared in this scope

channel = analogPinToChannel(4); // Pin A4 to ADC channel

^

Multiple libraries were found for "Adafruit_Sensor.h"

Used: C:\Users\trapt\Documents\Arduino\libraries\Adafruit_CircuitPlayground

Not used: C:\Program Files (x86)\Arduino\libraries\Adafruit_CircuitPlayground

Not used: C:\Program Files (x86)\Arduino\libraries\Adafruit_CircuitPlayground

Not used: C:\Program Files (x86)\Arduino\libraries\Adafruit_CircuitPlayground

Not used: C:\Program Files (x86)\Arduino\libraries\Adafruit_CircuitPlayground

exit status 1

Error compiling for board Arduino/Genuino Uno.

This report would have more information with

"Show verbose output during compilation"

option enabled in File -> Preferences.

BigRedTex (author)jeflea27682017-10-05

Did you figure it out?

vandenbrande (author)2016-03-29

There was a little mistake in the Schematic. I fixed it.

About This Instructable

2,105views

6favorites

License:

Bio: Hello world! I make simple & Advanced projects for people who want to learn programming and electronics. Most of my Instructables are about arduino and the ... More »
More by vandenbrande:ARDUINO - SOLID STATE RELAY FAN/ventilator Control Using the W1209 Thermistor and SSR-25 DA Arduino - SSR-25 DA Solid State Relay and DS3231 RTC Automatic Timer Lamp Arduino & C# - RGB LED / LED STRIP CONTROL C# Application
Add instructable to: