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


  • Prototype Breadboard with 400 points

    Prototype Breadboard with 400 points

    Solderless Plug-In Breadboard 0.1 inch - 2.54mm spacing.

    400 Points. 2 x 30 x 5 commoned points. 4 rows of 25 points. Self-adhesive backing, or use free-standing.

    deal for experiments & prototyping.

    BB400T
    £4.00
  • Nylon Nut M3 Pack of 10

    Nylon Nut M3 Pack of 10

    Nylon Nut. M3 (3mm dia Metric thread) 10 pack

    30YNT
    £0.75
  • Nylon Slotted Cheese Head Screws 12mm Long 10 pack

    Nylon Slotted Cheese Head Screws 12mm Long 10 pack

    Nylon Cheesehead Screw Slotted. M3 (3mm dia Metric thread) 12mm long. 10 pack

    30Y12T
    £0.75
  • PCB Spacer with M3 Thread 6mm Long. Pack of 20

    PCB Spacer with M3 Thread 6mm Long. Pack of 20

    Pack of 20 Nylon PCB Spacers with M3 Thread. 6mm Tall

    ST6
    £1.98
  • PCB Spacer with M3 Thread 8mm Long. Pack of 20

    PCB Spacer with M3 Thread 8mm Long. Pack of 20

    Pack of 20 Nylon PCB Spacers with M3 Thread. 8mm Tall

    ST8
    £2.00
  • Ultrasonic Ranging Module for Arduino

    Ultrasonic Ranging Module for Arduino

    Ultrasonic ranging module for Arduino and other microcontroller projects

     
    This is a module with a 40kHz ultrasonic transmitter / receiver pair mounted on the front of a small PCB, with the required control circuitry on the back.
    It sends a short 40kHz square wave out, and calculates the distance by recording the time it takes the wave to return to the sensor.
     
    Voltage : 5VDC
    Working Range : 20mm to 4500mm
    Accuracy : 2mm


    Example project: 

     
    HC SR04 Distance Measurement Tool
     
    This article will demonstrate how to build a simple distance measuring device using the HC SR05 ultrasonic sensor board. This project can be used standalone as a way of measuring short distances or, it can be incorporated into other projects that require distance measuring. This sensor works best when the two transceivers are parallel to a solid surface, at a distance between 2cm to 450cm. 
     
    Here’s what you will need:
     
    Tools
    Step 1
    First, you will need to connect the HCSR04 sensor to the Arduino. Simply use the male to female jumper leads to connect the two together as described below and in fig.1:

    HCSR04                                      Arduino
    VCC-----------------------------------------5V
    Trig------------------------------------------D3
    Echo----------------------------------------D2
    GND---------------------------------------GND
     
    Step 2
    Solder the KY1602 module onto the 1602 LCD screen. Pin 1 on the KY1602 module is the one closest to the 4 data and power pins. Once soldered, you can now connect the LCD display to the Arduino as shown in fig. 1.


                                                                                   fig. 1

     

    Step 3
    Connect the Arduino to a computer and install the libraries mentioned above. If you need help installing the libraries, CLICK HERE for a quick tutorial.
     

    Step 4
    You can now start writing the code to get this all working:


    First, clear the IDE window. Then, include the aforementioned libraries:
     
       
    #include <HCSR04.h>
    #include <LCD_I2C.h>
       
    



    Initialize the HCSR04 sensor. The numbers in the brackets correspond to the trigger and echo pins respectively:

       
    HCSR04 hc(3, 2);
       
    

     

    Initialize the KY1602 I2C LCD driver (address 0x27 in this example) and specify the LCD display (in this case 16 characters, 2 rows):

    LCD_I2C lcd(0x27, 16, 2);
       
    


     

    Begin the void setup function. Initialize the LCD screen and turn on the backlight:

       
    void setup()
    {
      lcd.begin();
      lcd.backlight();
    }  
    
    


    Begin the void loop function. Set the cursor to the first character:

    void loop()
    {
        lcd.setCursor(0,0);
    
    


    Print the distance calculated by the sensor on the LCD screen:

        lcd.print(hc.dist());
       
    

     

    Add 100ms delay:

    delay(100);                
    }
       
    

     

    The completed code should look like this:

    #include <HCSR04.h>
    #include <LCD_I2C.h>
    
    HCSR04 hc(3, 2);
    LCD_I2C lcd(0x27, 16, 2);
    
    void setup()
    {
      lcd.begin();
      lcd.backlight();
    }
    
    void loop()
    {
        lcd.setCursor(0,0);
        lcd.print(hc.dist());
        delay(100);                
    }
    
       
    

     

     
    Step 5
    Press the “Upload” button at the top (button with tick, located below “File”). The IDE will now compile the code and upload it to your Arduino (this will take a few moments).
     
    Step 6
    All done! The LCD will now start to display the distance calculated by the sensor.
     

     

    HCSR04
    £2.50
  • GY68 Barometric Pressure Sensor module for Arduino BMP180

    GY68 Barometric Pressure Sensor module for Arduino BMP180

    Barometric pressure sensor module for Arduino and other microcontroller projects

     
    This tiny module has a BMP180 precision pressure sensor soldered on to a GY-68 breakout board to make it easy to use this amazing sensor. The BMP180 will give you accurate pressure data via the standard I2C protocol making it simple to add to your project.
     
    Voltage : 1.8 - 3.6VDC
    Preasure Range 300hPa to 1100hPa (-500m to 9000m)
    Current consumption 0.5µA
    Size 13x10mm
    GY68
    £2.50
  • Buck Converter DC-DC Step Down 3A Voltage regulator

    Buck Converter DC-DC Step Down 3A Voltage regulator

    3A DC-DC Step Down Voltage Regulator (Buck Converter)

     
    This tiny step down voltage regulator uses high frequency switching to make a very efficient DC-DC converter. It can take 4.5V to 28V and lower it to between 0.8V and 20V at up to 3A (output). The voltage is set with the small in built potentiometer.
     
    Voltage in : 4.5V - 28VDC
    Voltage out : 0.8V- 20VDC
    Switching Frequency : 1 - 1.5MHz
    Maximum Output Current : 3A
    Dimensions : 22mm x 17mm
    BCD3A
    £2.50
  • Spring Assortment of 150 pieces

    Spring Assortment of 150 pieces

    150piece Assortment Hard to Find Springs
    Thus is a range of 20 of the most useful sizes
     
     
    Extended springs 
    8pc 5.2 x 20.6mm
    8pc 5.6 x 25.4mm 
    8pc 6.5 x 22.2mm
    7pc 8.7 x 46.8mm
    7pc 7.1 x 50.8mm
    6pc 7.1 x 38.1mm
    7pc 8.7 x 36.5mm
    6pc 7.9 x 28.6mm
    6pc 8.0 x 31.8mm
    7pc 8.0 x 44.5mm
    7pc 4.0 x 79.4mm
    5pc 4.8 x 44.5mm
     
    Compressed springs 
    10pc 7.1 x 12.7mm
    10pc 6.4 x 10.3mm
    10pc 7.1 x 19.1mm
    6pc 9.5 x 15.9mm
    9pc 9.5 x 19.1mm
    5pc 9.1 x 34.9mm
    8pc 5.6 x 38.1mm
    10pc 5.6 x 17.5mm
    SPR150
    £6.50

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