Arduino controlled Automated Humidity controller in Proteus! DHT 22 and Fan(motor) – tutorial # 24
|Arduino controlled Automated Humidity controller in Proteus! DHT 22 and Fan(motor) – tutorial # 24
Arduino Robotic Online Individual Classes (via skype) with Practical Explanations, Contact me on: nik261190@gmail.com
DHT22 humidity sensor to Arduino! When the humidity rises more than the threshold value the fan(motor) works until it becomes lower than the threshold value. The process is automated and simulated in Proteus 8. The increasing and decreasing is done manually here. Connection, coding, and simulation well demmonstrated. You need to download the DHT library from internet in order to run the code. And guys no worries about the code. You can get the code in the first comment of the video. I have given it there. 🙂
Arduino controlled Automated Humidity controller in Proteus! DHT 22 and Fan(motor) – tutorial # 24
Arduino controlled Automated Humidity controller in Proteus! DHT 22 and Fan(motor) – tutorial # 24
Here you go with the code:
#include "DHT.h"
#define DHTPIN 8
#define DHTTYPE DHT22
DHT dht(DHTPIN, DHTTYPE);
int FAN=7;
void setup()
{
Serial.begin(9600);
pinMode(FAN, OUTPUT);
}
void loop()
{
float h = dht.readHumidity();
Serial.println(h);
if(h>=75)
{
digitalWrite(FAN,HIGH);
}
else
{
digitalWrite(FAN,LOW);
}
delay(500);
}
thank you so much very useful ..
Sorry sir, How to find DHT library for Proteus. i can not find the Web for Download.
i cant find dht22 library for proteus
please send me on my email bo2_6ang@yahoo.com
please. .thank you!!
Thank you bro 😁
I DONT WHY, THERE WERE ERROR IN CODE BROTHER
hi bro
#include "DHT.h" in nor defined
wheres the code? i would be grateful if you can pot the code again
Hi bro, there were error
right code :
#include <DHT.h>
#include <DHT_U.h>
#include <Adafruit_Sensor.h>
#define DHTPIN 8
#define DHTTYPE DHT22
DHT dht(DHTPIN, DHTTYPE);
int FAN=7;
void setup()
{
Serial.begin(9600);
pinMode(FAN, OUTPUT);
}
void loop()
{
float h = dht.readHumidity();
Serial.println(h);
if(h>=75)
{
digitalWrite(FAN,HIGH);
}
else
{
digitalWrite(FAN,LOW);
}
delay(500);
}
sir code mai erroe haa