이금강Juhyun Kim이동준정세환
Published

온습도상자

온도와 습도가 일정 수치에 도달하면 부저음이 울리고, 불이 켜지는 장치입니다.

AdvancedFull instructions provided6 hours77
온습도상자

Things used in this project

Story

Read more

Custom parts and enclosures

_ev4cQV5AbA.fzz

Code

Untitled file

Arduino
#include<dht.h>
dht DHT;

#define DHT11_PIN 3
#define LED 13
#define BUZZER 10

void setup() {
Serial.begin(9600);
Serial.println("welcome to TechPonder Humidity and temperature Detector");
pinMode(BUZZER, OUTPUT);
}

void loop() {
int chk = DHT.read11(DHT11_PIN);

Serial.println(" Humidity " );
Serial.println(DHT.humidity, 1);
Serial.println(" Temparature ");
Serial.println(DHT.temperature, 1);
delay(2000);

if (DHT.humidity > 45 && DHT.temperature > 23) {
  digitalWrite (LED, HIGH);
  digitalWrite (BUZZER, HIGH);
}else{ digitalWrite (LED, LOW);
  digitalWrite (BUZZER, LOW);
}
}

Credits

이금강
1 project • 1 follower
Ang ?
Juhyun Kim
26 projects • 12 followers
이동준
2 projects • 0 followers
정세환
1 project • 1 follower

Comments