|Now FREE Delivery on UK mainland orders over £30+VAT|
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
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:
Arduino Uno x 1 or Arduino Nano x 1
Adafruit Unified Sensor Library
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
Ground - - - - - - - - - - Ground
A 10KΩ pull-up resistor is built in to the KY-015
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.
We can now create the code to get this all working
First, delete the code in the IDE window, then include the aforementioned libraries:
This bit of code imports the DHT library and links it to the sketch.
This bit of code defines which pin is KY015 connected to and sets the type of sensor (KY015 uses DHT11)
This bit of code initialises the sensor
The setup bit of code initialises serial output with baud rate of 115200 and prints DHT11 test! In the console
This bit makes the Arduino wait 2 seconds between measurements
Read humidity from the sensor
Read temperature from the sensor
Print the latest reading in serial monitor
Solderless Female to Female Jumper Leads in a set of 40
This set of coloured female to female jumper leads can be used together or peeled apart into smaller sets or single leads. They are great for prototyping with boards like Arduinos and Raspberry Pi.
With 10 different colours and 4 of each colour, it's easy to keep track for quick fault finding.
Colours: Red, Orange, Yellow, Green, Blue, Grey, Purple, Brown, Black and White
Soil hygrometer module with digital and analogue outputs for Arduino and other microcontroller projects
This module has a seperate 2 pronged moisture detector that is inserted into the soil and then connected to the comparitor board using the supplied link wires. It can give out a digital (High/Low) signal at a certain moisture level that can be set by adjusting the potentiometer on the board. There is also an analogue output to give you a more precise reading of the moisture level in the soil.
Voltage : 3.3 to 5VDC
Comparitor PCB Size 30x16mm
Methane gas sensor module for Arduino and other microcontroller projects
This module has a sensitive methane sensor that will detect levels of methane in the air. The sensor outputs a varying voltage on the analogue pin depending on the level of methane and it has a comparator to give you a digital out at when the methane level reaches a certain level, this can be set with the built in potentiometer.
Please note, this sensor needs to warm up for 20 seconds before it will give a stable reading.
Voltage : 5VDC
Current : 150mA
Sensitivity : 300 to 10000ppm
2.4GHz WiFi NodeMcu IoT Development board for Arduino and other IOT projects
This module uses the popular ESP8266 microchip with full function WiFi as well as its own microcontroller.
It employs the CH340 USB to Serial converter.
This module can be used to add WiFi to your microntroller project. Can be programmed directly from the Arduino IDE to work independently.
Voltage : 5VDC
Frequency : 2.4GHz
Wireless Standard : 802.11 b/g/n
Dimensions : 57mm x 30mm
What is the CJUMCU-811 Module?
CO2 and VOC indoor air quality sensor module for Arduino and other microcontroller projects
This module has a CCS811 module that is an ultra low powered digital gas sensor using a metal oxide multi compound sensor. The module uses the onboard MCU to manage the sensor and provide the needed Analogue to Digital conversion and I2C interface making it simple to add to your project. It will detect a wide range of VOCs including Carbon Monoxide and can convert this to an eCO2 (equivalent CO2) value.
How Can I use the CJUMCU-811 to test air quality and CO2 levels?
Air Quality Sensor with LCD
In this project, we will be building an air quality station that can measure eCO2 (estimated carbon dioxide) levels and a wide range of VOCs (Volatile Organic Compounds). High VOC levels can contribute to a wide range of health complications and high CO2 levels (>1000ppm) can impair normal cognitive function, so it is useful to be able to monitor them.
Connecting the CJMCU811 to an Arduino Connecting the KY1602 to an Arduino and a 1602 LCD
Now, We need to declare the I2C devices and their addresses:
Initialize the I2C devices and turn on lCD backlight in the setup function:
Start serial communication
Check to see if the CJMCU is configured correctly, otherwise display error message:
Starting the void loop function. Check to see if the data from the sensor is available, and if so, read and calculate the results:
Send the data via serial port:
Display the same data on the LCD display:
Add 10ms delay to prevent overloading the I2C bus:
The completed code should look like this:
Step 4 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 may take a few moments).
Step 5 To check if everything is working, open the serial monitor from the Arduino IDE (magnifying glass button in the top right corner) and see if you can get a reading. The CJMCU has to be left on for 24 hours before it will give a correct reading. If everything is connected correctly, the LCD should also show readings from the sensor.
Step 6 That’s it! You should now have a fully working air quality sensor. Now all you need to decide is what sort of enclosure you want to put it in. You can look at our high quality boxes HERE for ideas.