Temperature and humidity DHT11 sensor module (KY-015) [S008]




* Specs

It Can detect ambient humidity and temperature

Humidity measuring range:20% -90 %RH, Humidity

measurement tolerance:+ /-5%

Temperature measurement range:0 Degree-50

Degree temperature measurement tolerance:+/ -2 Degree

Resolution: humidity(1%RH),temperature(1 degree)

Stability: <±1%RH/year

Storage temperature:10-40 degree,humidity:below 60%RH

Operating Voltage:3.3V-5V

Output Type: Digital Output

With fixed bolt hole for easy installation

Small size, PCB Size:3.2cm*1.4cm

Power indicator ( red )

Weight is about 8g 




* Content

- DataSheet : http://www.ram-e-shop.com/ds/general/KY-015.pdf

- Library : http://deneb21.tistory.com/attachment/cfile24.uf@220A6C3755DA9E322E7FED.zip


- Connect

S - D4

5V - 5V

- - GND


- Key Code

#include <DHT11.h>


DHT11 dht11(pin); 

int err;

float temp, humi;


if((err=dht11.read(humi, temp))==0)

{

    lcd.setCursor(0,1);

    lcd.print("temperature=" + (String)temp + "'C");

 

    lcd.setCursor(0,2);

    lcd.print("humidity=" + (String)humi + "'F");

}

else

{

    lcd.setCursor(0,3);

    lcd.print("err=" + (String)err); 

}

delay(DHT11_RETRY_DELAY);  



Posted by RD IoT RDIoT

댓글을 달아 주세요