Temperature Humidity 4 Digit 7 segment Arduino UNO

Temperature and Humidity Displayed on 4 Digit 7 segment

Arduino UNO + DHT11 

In this video Tutorial we will learn how the DHT11 Sensor works and how to use it with the Arduino UNO Board. You can watch the following video or read the written tutorial below.
The DHT11 is a basic, ultra low-cost digital temperature and humidity sensor. It uses a capacitive humidity sensor and a thermistor to measure the surrounding air, and spits out a digital signal on the data pin (no analog input pins needed). Its fairly simple to use, but requires careful timing to grab data. The only real downside of this sensor is you can only get new data from it once every 2 seconds, so when using our library, sensor readings can be up to 2 seconds old.

Schema



download

Geekcreit® UNO R3 ATmega328P Development Board For Arduino


16 In 1 Sensor Module Kit For Arduino Raspberry Pi 2 Pi2 Pi3

Code for 4 Digit 7 segment (common anode)

Download Temperature
Download Humidity
Download Temperature and Humidity

Code for 4 Digit 7 segment (common cathode)

Download Temperature
Download Humidity
Download Humidity and Temperature

Library

6 comments:

  1. error massage is coming what should i do?
    Arduino: 1.8.3 (Windows 7), Board: "Arduino Nano, ATmega328"

    In file included from C:\Users\Dr. WASANTHA\Documents\Arduino\libraries\DHT-sensor-library-master\DHT_U.cpp:22:0:

    C:\Users\Dr. WASANTHA\Documents\Arduino\libraries\DHT-sensor-library-master\DHT_U.h:38:10: error: conflicting return type specified for 'virtual bool DHT_Unified::Temperature::getEvent(sensors_event_t*)'

    bool getEvent(sensors_event_t* event);

    ^

    In file included from C:\Users\Dr. WASANTHA\Documents\Arduino\libraries\DHT-sensor-library-master\DHT_U.h:25:0,

    from C:\Users\Dr. WASANTHA\Documents\Arduino\libraries\DHT-sensor-library-master\DHT_U.cpp:22:

    C:\Users\Dr. WASANTHA\Documents\Arduino\libraries\Adafruit_Sensor/Adafruit_Sensor.h:146:16: error: overriding 'virtual void Adafruit_Sensor::getEvent(sensors_event_t*)'

    virtual void getEvent(sensors_event_t*);

    ^

    In file included from C:\Users\Dr. WASANTHA\Documents\Arduino\libraries\DHT-sensor-library-master\DHT_U.cpp:22:0:

    C:\Users\Dr. WASANTHA\Documents\Arduino\libraries\DHT-sensor-library-master\DHT_U.h:50:10: error: conflicting return type specified for 'virtual bool DHT_Unified::Humidity::getEvent(sensors_event_t*)'

    bool getEvent(sensors_event_t* event);

    ^

    In file included from C:\Users\Dr. WASANTHA\Documents\Arduino\libraries\DHT-sensor-library-master\DHT_U.h:25:0,

    from C:\Users\Dr. WASANTHA\Documents\Arduino\libraries\DHT-sensor-library-master\DHT_U.cpp:22:

    C:\Users\Dr. WASANTHA\Documents\Arduino\libraries\Adafruit_Sensor/Adafruit_Sensor.h:146:16: error: overriding 'virtual void Adafruit_Sensor::getEvent(sensors_event_t*)'

    virtual void getEvent(sensors_event_t*);

    ^

    exit status 1
    Error compiling for board Arduino Nano.

    This report would have more information with
    "Show verbose output during compilation"
    option enabled in File -> Preferences.

    ReplyDelete
  2. Arduino: 1.8.8 (Windows 10), Placa:"Arduino/Genuino Uno"

    Foram encontradas múltiplas bibliotecas para «DHT.h»
    In file included from C:\Users\dafg0\Documents\Arduino\libraries\DHT_sensor_library\DHT_U.cpp:22:0:

    Utilizado: C:\Users\dafg0\Documents\Arduino\libraries\DHT_sensor_library
    C:\Users\dafg0\Documents\Arduino\libraries\DHT_sensor_library\DHT_U.h:25:29: fatal error: Adafruit_Sensor.h: No such file or directory

    Não utilizado: C:\Users\dafg0\Documents\Arduino\libraries\DHT-sensor-library-master
    compilation terminated.

    exit status 1
    Erro ao compilar para a placa Arduino/Genuino Uno.

    Este relatório teria mais informação com a
    opção «Mostrar mensagens detalhadas durante a
    compilação» seleccionada nas Preferências.

    Hello its giving me this error pls helpme

    ReplyDelete
  3. Everything works, thank you very much!!

    ReplyDelete
  4. Essay writing is just about the assignments needed in school. Students are asked to compose a writing piece along with the mentor grades it according to the contents and syntax and structure. In essays, some may be tasked to gather and organize facts, look at contrasting arguments, or articulate his position regarding a clear subject. belltestchamber.com

    ReplyDelete
  5. It’s the wrong Pi out for the 3 pins DHT11. The leftmost is the data not the bcc.

    ReplyDelete