JOY-it KY015 Temperature Sensor Instruction Manual

August 30, 2024
JOY-It

JOY-it KY015 Temperature Sensor

Specifications

  • Chipset: DHT11
  • Communication protocol: 1-Wire
  • Measuring range temperature: 0-50°C
  • Measurement accuracy (temperature): ±2°C
  • Humidity measuring range: 20-90 %RH
  • Measurement accuracy (humidity): ±5%

Product Usage Instructions

Use with the Arduino

Connection

Connect the sensor to Arduino as follows:

  • Arduino Pin D2 – DHT11 Signal
  • 5V – +V
  • GND – GND

Code Example

Use the provided code snippet for Arduino to read temperature and humidity data from the sensor.

Use with the Raspberry Pi

Connection

Connect the sensor to Raspberry Pi as follows:

  • Raspberry Pi GPIO 23 (Pin 16) – DHT11 Signal
  • +3.3V (Pin 1) – +V
  • GND (Pin 6) – GND

Code Example

For Raspberry Pi, follow these steps to install and use the sensor:

  1. Update and install necessary packages.
  2. Create a virtual environment for the project.
  3. Install the Adafruit CircuitPython DHT library.
  4. Create or download a Python script to read data from the sensor.

Frequently Asked Questions

  • Q: What is the sampling rate of the DHT11 sensor?
    • A: The sampling rate of the DHT11 sensor is 2 seconds, making it suitable for long-term measurements.
  • Q: Which communication protocol does the DHT11 sensor use?
    • A: The DHT11 sensor uses the 1-Wire communication protocol.

GENERAL INFORMATION

Dear Customer,

Thank you for choosing our product. In the following, we will show you what to consider during commissioning and use. If you encounter any unexpected problems during use, please feel free to contact us. The DHT11 is a low-cost and straightforward digital temperature and humidity sensor that is particularly well suited for use with Raspberry Pi and Arduino.

BASIC INFORMATION

This sensor is a combination of temperature sensor and humidity sensor, united in a compact design. The sampling rate of the measurements is 2 seconds. This sensor is therefore particularly suitable for long-term measurements

Technical Specifications

USE WITH THE ARDUINO

Connection

ASSEMBLY AND INSTALLATION

code example

We offer a code example for the use with the Arduino, which you can download here. This sensor does not output its measurement result as an analog signal to an output pin, but communicates it digitally and coded. There are several possibilities to control this sensor module. The DHT-sensor-library published by the company Adafruit under the MIT-license, has proven to be particularly accessible. You can add the library directly in the Arduino IDE. To do this, click on Sketch → Include Library → Manage Libraries …. There you can search for the DHT sensor library in the search bar and install it. To use the sensor you now only need to copy the following modified code into your Arduino IDE and upload it to your Arduino. Before you start the code, make sure that the correct board is selected under Tools → Board : and the correct COM port is selected under Tools → Port

USE WITH THE RASPBERRY PI

Connection

code example

We provide a code example for use with the Raspberry Pi which you can download here. This code example uses the Adafruit_CircuitPython_DHT library from Adafruit which is released under the MIT- License. But first you have to execute the following commands:

  • sudo apt-get update
  • sudo apt-get install build-essential python3-dev
  • sudo apt install gpiod

Now create the necessary virtual environment for the project with the following commands:

  • mkdir dein_projekt
  • cd dein_projekt
  • python -m venv –system-site-packages env
  • source env/bin/activate
  • Now install the library with the following command:
  • pip3 install adafruit-circuitpython-dht

After you have executed the commands, you can also alternatively, if you have not downloaded the code sample, copy the following identical code sample into a newly created file. To do this, you must enter the following command into the console on your Raspberry Pi.

  • nano DHT11.py

Once you have done this, all you need to do is paste the following code into the file you have just created

You can save the file with CTRL+O and then close it with CTRL+X. You can execute the file in the console with the command

  • python3 DHT11.py

USAGE WITH MICRO:BIT

Connection

Code example

For the following code example an additional library is needed. To install it, click on “Add extension” in your make code sketch and search for “DHT11” here. Install here the „DHT11_DHT22“ library by alankrantas. Transfer the following sample code into your sketch, or import the .hex- file.

USAGE WITH RASPBERRY PI PICO

Code example

For the following code example an additional library is needed: micropython- stubs by Jos Verlinde | published under the MIT license. Download the code sample here or transfer the following code completely to your Raspberry Pi Pico

Additional Information

Our information and take-back obligations according to the Electrical and Electronic Equipment Act (ElektroG)

Symbol on electrical and electronic equipment:

This crossed-out dustbin means that electrical and electronic appliances do not belong in the household waste. You must return the old appliances to a collection point. Before handing over waste batteries and accumulators that are not enclosed by waste equipment must be separated from it.

Return options:

As an end user, you can return your old device (which essentially fulfils the same function as the new device purchased from us) free of charge for disposal when you purchase a new device. Small appliances with no external dimensions greater than 25 cm can be disposed of in normal household quantities independently of the purchase of a new appliance.

Possibility of return at our company location during opening hours:

SIMAC Electronics GmbH, Pascalstr. 8, D-47506 Neukirchen-Vluyn, Germany.

Possibility of return in your area:

We will send you a parcel stamp with which you can return the device to us free of charge. Please contact us by email at Service@joy- it.net or by telephone.

Information on packaging:

If you do not have suitable packaging material or do not wish to use your own, please contact us and we will send you suitable packaging.

Support

If any questions remained open or problems may arise after your purchase,we are available by e-mail, telephone and ticket support system to answer these.

www.joy-it.net
SIMAC Electronics GmbH
Pascalstr. 8, 47506 Neukirchen-Vluyn

References

Read User Manual Online (PDF format)

Read User Manual Online (PDF format)  >>

Download This Manual (PDF format)

Download this manual  >>

Related Manuals