Perfect costumer support
TV
Solar Energy
Home & Office
Gaming
Electronics & Projects
Network
Cameras
KY-015 | DHT11 Temperature & Humidity Sensor Module
KY-015 Temperature and Humidity Sensor module
The KY-015 Temperature and Humidity Sensor module provides a digital serial interface to measure environment humidity and temperature. Compatible with various microcontrollers like Arduino, Raspberry Pi and ESP32.
KY-015 SPECIFICATIONS
This module consist of a DHT11 digital humidity and temperature sensor, a 1 kΩ resistor and 3 male header pins. The DHT11 uses an internal thermistor and a capacitive humidity sensor to determine the surrounding conditions, an internal chip is responsible for converting the readings to a serial digital signal.
| Operating Voltage | 3.3V to 5.5V |
|---|---|
| Humidity measurement range | 20% to 90% RH |
| Humidity measurement accuracy | ±5% RH |
| Humidity measurement resolution | 1% RH |
| Temperature measurement range | 0ºC to 50ºC [32ºF to 122ºF] |
| Temperature measurement accuracy | ±2ºC |
| Temperature measurement resolution | 1ºC |
| Signal transmission range | 20m |
CONNECTION DIAGRAM
Connect the Power line (middle) and ground (-) to +5 and GND respectively. Connect signal (S) to pin 8 on the Arduino.
| KY-015 | Arduino |
|---|---|
| S | Pin 8 |
| middle | +5V |
| – | GND |
KY-015 ARDUINO CODE
The following sketch uses pin 8 on the Arduino to serially send and receive data from the KY-015 sensor. Serial communication is archived by sending specific series of high/low signals to the sensor and waiting for a response. Temperature and humidity data is read bit by bit and returned as an array of bytes.
int DHpin = 8; // input/output pin
byte dat[5];
byte read_data()
{
byte i = 0;
byte result = 0;
for (i = 0; i < 8; i++) {
while (digitalRead(DHpin) == LOW); // wait 50us
delayMicroseconds(30); //The duration of the high level is judged to determine whether the data is '0' or '1'
if (digitalRead(DHpin) == HIGH)
result |= (1 << (8 - i)); //High in the former, low in the post
while (digitalRead(DHpin) == HIGH); //Data '1', waiting for the next bit of reception
}
return result;
}
void start_test()
{
digitalWrite(DHpin, LOW); //Pull down the bus to send the start signal
delay(30); //The delay is greater than 18 ms so that DHT 11 can detect the start signal
digitalWrite(DHpin, HIGH);
delayMicroseconds(40); //Wait for DHT11 to respond
pinMode(DHpin, INPUT);
while(digitalRead(DHpin) == HIGH);
delayMicroseconds(80); //The DHT11 responds by pulling the bus low for 80us;
if(digitalRead(DHpin) == LOW)
delayMicroseconds(80); //DHT11 pulled up after the bus 80us to start sending data;
for(int i = 0; i < 5; i++) //Receiving temperature and humidity data, check bits are not considered;
dat[i] = read_data();
pinMode(DHpin, OUTPUT);
digitalWrite(DHpin, HIGH); //After the completion of a release of data bus, waiting for the host to start the next signal
}
void setup()
{
Serial.begin(9600);
pinMode(DHpin, OUTPUT);
}
void loop()
{
start_test();
Serial.print("Humdity = ");
Serial.print(dat[0], DEC); //Displays the integer bits of humidity;
Serial.print('.');
Serial.print(dat[1], DEC); //Displays the decimal places of the humidity;
Serial.println('%');
Serial.print("Temperature = ");
Serial.print(dat[2], DEC); //Displays the integer bits of temperature;
Serial.print('.');
Serial.print(dat[3], DEC); //Displays the decimal places of the temperature;
Serial.println('C');
byte checksum = dat[0] + dat[1] + dat[2] + dat[3];
if (dat[4] != checksum)
Serial.println("-- Checksum Error!");
else
Serial.println("-- OK");
delay(1000);
}
What our customers say
David and Aman were amazing. We had trouble with our Auxiliary cord. They were patient knowledgeable and friendly
Excellent service i really appreciate Highly recommend
Excellent customer service!
Very nice place! They helped me with my gadget for my scooter! 💛recommended
Very helpful staff. Found what I was looking for😎
Very helpful and did solve the issues about my husband’s phone. Thank you
David was super friendly and knowledgeable and also patient with my parents
went to buy a mobile microphone, they have different options and gave me very helpful advices to decide which one i should get :)
Excellent Service Im very happy with the service I recieved . They were incrediblly helpful and always went out of their way to explain everything clearly and patiently. All of the electronics were excellent quality and I really apreciated the time and effort they put into helpong me! Highly Recommended!!
Increible atención
Everything you need you can find, kindness and professionality
They are advertising the new Z Fold 8 ultra. We have the Z Fold 7, so we went there to check it out ans to buy a new mobile. I asked to see the phone because, in stores, they usually let you see and touch the phone before buying it. The guy replied in a really sarcastic way: “As I am the professional here, I can confirm that it is a good phone.” I was like: “What?” Then I showed him that I already had a Z Fold 7 in my hands. He replied: “So, you already know that it is a good phone.” Again, I was like: “What?” So I explained that I simply like to see and touch the phone before buying it. He just told me: “OK, go to a big store. We don’t have the phone here.” Well… not recommended. Even though I’m a big Samsung fan, I still want to check the phone for myself before buying it. It’s up to me. Expertise on something? ChatGPT also has expertise and will probably tell me much more than a sales guy.
Very helpful and friendly service. Thanks so much.
Amazing service and staff always ready to help and a vast selection of items to choose from.
Good service, David very knowledgeable and helpful
Very pleasant experience, staff is happy to help and provide information
Friendly, helpful team who are attentive and take their time to advise you with what product best meets your needs. Really appreciate the service!
Хороший ассортимент, профессиональные и приветливые сотрудники, помогли и подсказали с выбором
David es un genio. Atencion 10 puntos. Gran variedad! 🤝👏
Great service. Fast reliable and very professional people. Keep it guys u re great all of you.
Good sarvic
Impressing staff!!!thank you
Good staff, perfect service, will recommend this shop over other
Fantastic store!
Top service, my experience was very nice, they helped me with all the questions i asked very knowledgeable 100% recommend
The best staff in QAWRA very helpful and friendly 👏🏻👏🏻👏🏻👏🏻 definitely highly recommend place 😊
Zero stars if I could. I purchased a fitness tracker from this store that failed to perform its most basic advertised functions. It would not reliably track steps, sleep, or heart-rate data, and the battery life was nowhere near what was claimed. When I returned to the store for assistance, I was told the device had been checked and was supposedly working correctly. However, the problems continued exactly as before. Despite the tracker clearly not functioning as expected, the store refused to offer a replacement or further assistance and instead told me to deal directly with the manufacturer. This is extremely disappointing customer service. When a product sold by a retailer appears to be defective, customers reasonably expect the retailer to help resolve the issue rather than simply pass responsibility elsewhere. The most frustrating part was not the faulty device itself, but the complete lack of support once the sale had been made. Based on my experience, I would strongly recommend that others think carefully before purchasing electronics from this business, especially if after-sales support and customer service are important to them.
The staff were really helpful and they knew a lot about their products. 10/10 I'd definitely recommend this store. Also, it is the only place in St. Paul's Bay selling Kodak, Polaroid cameras and digital cameras.
Fastest repair
Malta's one-stop electronics store. From gadgets to gaming, we deliver same-day across the island.
(+356) 2744 3236 VAT MT16528323 · 3D Secure payments by Viva Wallet
Malta's one-stop electronics store. From gadgets to gaming, we deliver same-day across the island.
