The cookie settings on this website are adjusted to allow all cookies so that you have the very best experience. If you continue without changing your cookie settings, we'll assume that you are happy to receive all cookies on our website. However, if you would like to, you can change your settings at any time using the Change cookie settings link in the Special menu. 
    
 
+44 (0)20-84520161 Contact Us
Now FREE Delivery on UK mainland orders over £30+VAT

Temperature and humidity module for Arduino KY-015

  • Details

  • Recommended

  • Send

Details

Item Number
KY015
Item Condition
New
Price
£2.50 (inc VAT £3.00)

Options

Quantity


  • 2N3055 Transistor

    2N3055 Transistor

    2N3055  - NPN TO3 60V 15A 117W. Complement to MJ2955

    2N3055
    £2.50
  • BD139 Transistor

    BD139 Transistor

    NPN TO126 80V 1.5A 150MHz

    BD139
    £0.50
  • 16mm Control Pot 10K Lin

    16mm Control Pot 10K Lin

    16mm Single Control Pot with knurled & Slotted 6mm dia spindle. 10K Lin

    PCB Pins 5mm spacing. 

    Spindle length 20mm

    SJN10K
    £1.00
  • 16mm Control Pot 100K Lin

    16mm Control Pot 100K Lin

    16mm Single Control Pot with knurled & Slotted 6mm dia spindle. 100K Lin

    PCB Pins 5mm spacing. 

    Spindle length 20mm

    SJN100K
    £1.00
  • Hammond Mfg. ABS Box 109 x 81 x 41mm (1591XXSSBK)

    Hammond Mfg. ABS Box 109 x 81 x 41mm (1591XXSSBK)

    Hammond Manufacturing Black ABS Plastic Box with Screw-down lid. 109 x 81 x 41mm

    Hammond Part no.: 1591XXSSBK

    ABS20
    £2.75
  • Mica  Kit for TO220 etc Transistors

    Mica Kit for TO220 etc Transistors

    Mica Washer and Bush for TO220 devices

    K220
    £0.25
  • Mica  Kit for TO3 Transistors

    Mica Kit for TO3 Transistors

    Mica Washer and 2 bushes for TO3 devices

    KO3
    £0.36
  • Data Logger Shield with Real Time Clock for Arduino

    Data Logger Shield with Real Time Clock for Arduino

    Data Logger Shield with Real Time Clock for Arduino Uno 

    This Arduino compatible shield allows the logging and storage data from an Arduino project to an SD card.

    Having a built in Real Time Clock (RTC) insures data accuracy over long time periods and at times where your project may suffer from power loss. Supplied with a CR1220 lithium battery. 

    AUDL
    £4.50
  • 1N4007 Diode

    1N4007 Diode

    Diode, Wire Ended Rectifier 1A 1000V

    Replacement for:

    1N4001

    1N4002

    1N4003

    1N4004 

    1N4005 

    1N4006

    1N4007
    £0.10

Send to Friend

: *
: *
: *
Type the characters you see in the picture:


*

What is the KY-015 DHT11 Module?

The KY015 is a temperature and humidity module for Arduino and other microcontroller projects

 

KY-015 module has a DHT11digital temperature and humidity sensor and a resistor. The DHT11 uses a thermistor for the temperature sensing and a capacitive humidity sensor along with an internal IC to give a digital output for both temperature and humidity.

 

Voltage : 3.3 to 5VDC

Humidity range : 20% to 90% @ 5% RH accuracy

Temperature range : 0C to 50C at 2C accuracy

Size 30x15mm

 

How Can I use the KY-015 Module to monitor temperature and humidity?

Here is an example project to measure temperature and humidity using the KY015 module and an Arduino Uno

 

Temperature and Humidity Sensor

In this project, we will be building a weather station that can measure both temperature and humidity.

This is what you will need:

Tools

Jumper Leads (male to female)

 

Components

Arduino Uno x 1 or Arduino Nano x 1

KY-15 sensor module

 

Libraries

DHT Sensor Library

Adafruit Unified Sensor Library

 

Step 1

First you will nedd to assemble the project. Connect everything together using the wiring diagram bellow for reference.

 

 

Connect the KY-015 sensor module to the Arduino

KY-015                        Arduino   

Ground - - - - - - - - - -  Ground
Vcc - - - - - - - - - - - - - - 3v3
Data - - - - - - - - - - - - -  A0

A 10KΩ pull-up resistor is built in to the KY-015

 

Step 2

Connect your Arduino to the PC and install the above Libraries. If you don’t know how to do this, CLICK HERE and follow the “Installing Arduino Libraries” section.

 

Step 3

We can now create the code to get this all working

First, delete the code in the IDE window, then include the aforementioned libraries:  

#include "DHT.h"

This bit of code imports the DHT library and links it to the sketch.

#define DHTPIN A0
#define DHTTYPE DHT11

This bit of code defines which pin is KY015 connected to and sets the type of sensor (KY015 uses DHT11)

DHT dht(DHTPIN, DHTTYPE);

This bit of code initialises the sensor

void setup() {
  Serial.begin(115200);
  Serial.println(F("DHT11 test!"));
  dht.begin();
}

The setup bit of code initialises serial output with baud rate of 115200 and prints DHT11 test! In the console

void loop() {
   delay(2000);

This bit makes the Arduino wait 2 seconds between measurements

  float h = dht.readHumidity();

Read humidity from the sensor

  float t = dht.readTemperature();
Read temperature from the sensor
  Serial.print(F("Humidity: "));
  Serial.print(h);
  Serial.print(F("%  Temperature: "));
  Serial.print(t);
  Serial.println(F("°C "));
}

Print the latest reading in serial monitor

 

Finished Code:

#include "DHT.h"

#define DHTPIN A0 // Digital pin connected to the DHT sensor
#define DHTTYPE DHT11 // DHT 11
DHT dht(DHTPIN, DHTTYPE);

void setup() {
  Serial.begin(115200);
  Serial.println(F("DHT11 test!"));

  dht.begin();
}

void loop() {
  delay(2000);

  float h = dht.readHumidity();
  float t = dht.readTemperature();

  Serial.print(F("Humidity: "));
  Serial.print(h);
  Serial.print(F("%  Temperature: "));
  Serial.print(t);
  Serial.println(F("°C "));
}

 

Recently Viewed


Trustpilot