Posts

Showing posts from January, 2022

Temperature and humidity monitoring by vision36 ,,, dht 11 sensor .

Image
 This is a project in which we will be using arduino and dht 11 temperature and humidity sensor ... so u can view the temperature and humidity in the serial monitor ,,,, LETS GET STARTED  * ARDUINO UNO  *DHT 11 TEMPERATURE AND HUMIDITY SENSOR  IN THIS PROJECT WE WILL BE USING "UNO" , "DHT 11" , " ARDUINO IDE" , AND SOME JUMPER WIRES ,,,  CONNECT PIN NUMBER 2 TO THE DATA PIN ON THE DHT 11 [signal] CONNECT 5V PIN TO THE VCC OF DHT11 SENSOR  [ voltage (or) power ] CONNECT GND TO THE GND PIN ON DHT11 SENSOR [ ground ] now upload the code given below in the arduino ide  CODE :  #include "DHT.h" #define DHTPIN 2     #define DHTTYPE DHT11   DHT dht(DHTPIN, DHTTYPE); void setup() {   Serial.begin(9600);   Serial.println(F("DHTxx test!"));   dht.begin(); } void loop() {      delay(2000);      float h = dht.readHumidity();     float t = dht.readTemperature();      float f = dht.readTemperature(true);      if (isnan(h) || isnan(t) || isnan(f)) {