KY-015
KY-015 is Combi-Sensor Temperature + Humidity manufactured by Joy-IT.
- Part of the KY-015-Joy comparator family.
- Part of the KY-015-Joy comparator family.
Overview
2. Pin-Assignment 3. Code Example Arduino 4. Code Example Raspberry Pi 5. Information and take-back obligations 6. Support bi Sensor
Published: 27.08.2018
Copyright by Joy-IT
2 bi Sensor
1. OVERVIEW
Dear customer, Thank you for choosing our product. In the following, we will show you what to observe during missioning and use. Should you encounter any unexpected problems during use, please do not hesitate to contact us.
Chipset munication protocoll Measuring range air humidity Measuring range temperature
DHT11 1-Wire 20
- 90% RH 0
- 50°C
Please note that the sensor only provides a new measurement result every 2 seconds. It is designed for long-term recordings.
2. PIN-ASSIGNMENT
Pin Assignment Arduino
Signal
Pin D2
+V Pin 5V
GND Pin GND
Pin Assignment Raspberry Pi
Signal
GPIO23 [Pin 16]
+V 3,3V [Pin 1]
GND Masse [Pin 6]
Published: 27.08.2018
Copyright by Joy-IT
3 bi Sensor
3. CODE EXAMPLE ARDUINO
This sensor does not output its measurement result as an analog signal on an output pin, but municates this digitally coded. There are several ways to control this sensor module. The Adafruit_DHT Library, published by Adafruit under the following link under the Open Source MIT license, has proven to be particularly accessible.
The example below uses this library
- we remend downloading it from Github, unpacking it and copying it to the Arduino Library folder located by default at (C:User[Username]Documents Arduinolibraries) to make it available for this code example and subsequent projects. Alternatively, this is also included in the download package.
You can download the code example here or copy and paste the following sections:
// Adafruit_DHT Library is inserted #include "DHT.h"
// Here the respective input pin can be declared #define DHTPIN 2
// The sensor is initialized #define DHTTYPE DHT11 // DHT 11 DHT dht(DHTPIN, DHTTYPE); void setup() {
Serial.begin(9600); Serial.println("KY-015 Test
- Temperatur und Luftfeuchtigkeits-Test:");
//...