Free Essay

Anything

In:

Submitted By
Words 834
Pages 4
DHTxx Sensors
Created by lady ada

Last updated on 2016-01-04 12:09:26 PM EST

Guide Contents
Guide Contents
Overview

2
3

DHT11 vs DHT22

3

Connecting to a DHTxx Sensor
Using a DHTxx Sensor
Downloads

© Adafruit Industries

https://learn.adafruit.com/dht

5
7
10

Page 2 of 10

Overview
This tutorial covers the low cost DHT temperature & humidity sensors (http://adafru.it/aJU). These sensors are very basic and slow, but are great for hobbyists who want to do some basic data logging. The DHT sensors are made of two parts, a capacitive humidity sensor and a thermistor (http://adafru.it/aHD). There is also a very basic chip inside that does some analog to digital conversion and spits out a digital signal with the temperature and humidity. The digital signal is fairly easy to read using any microcontroller.

DHT11 vs DHT22
We have two versions of the DHT sensor, they look a bit similar and have the same pinout, but have different characteristics. Here are the specs:
DHT11 (http://adafru.it/386)
Ultra low cost
3 to 5V power and I/O
2.5mA max current use during conversion (while requesting data)
© Adafruit Industries

https://learn.adafruit.com/dht

Page 3 of 10

Good for 20-80% humidity readings with 5% accuracy
Good for 0-50°C temperature readings ±2°C accuracy
No more than 1 Hz sampling rate (once every second)
Body size 15.5mm x 12mm x 5.5mm
4 pins with 0.1" spacing
DHT22 (http://adafru.it/385)
Low cost
3 to 5V power and I/O
2.5mA max current use during conversion (while requesting data)
Good for 0-100% humidity readings with 2-5% accuracy
Good for -40 to 125°C temperature readings ±0.5°C accuracy
No more than 0.5 Hz sampling rate (once every 2 seconds)
Body size 15.1mm x 25mm x 7.7mm
4 pins with 0.1" spacing
As you can see, the DHT22 (http://adafru.it/385) is a little more accurate and good over a slightly larger range. Both use a single digital pin and are 'sluggish' in that you can't query them more than once every second or two.
You can pick up both the DHT11 (http://adafru.it/386) and DHT22 (http://adafru.it/385) from the adafruit shop!

© Adafruit Industries

https://learn.adafruit.com/dht

Page 4 of 10

Connecting to a DHTxx Sensor
Luckily it is trivial to connect to these sensors, they have fairly long 0.1"-pitch pins so you can plug them into any breadboard, perfboard or similar.

Likewise, it is fairly easy to connect up to the DHT sensors. They have four pins
VCC (3 to 5V power)
Data out
Not connected
Ground
Simply ignore pin 3, its not used. You will want to place a 10K resistor between VCC and the data pin, to act as a medium-strength pull up on the data line. The Arduino has built in pullups you can turn on but they're very weak, about 20-50K
This diagram shows how we will connect for the testing sketch. Connect data to pin 2, you can change it later to any pin.
© Adafruit Industries

https://learn.adafruit.com/dht

Page 5 of 10

© Adafruit Industries

https://learn.adafruit.com/dht

Page 6 of 10

Using a DHTxx Sensor
To test the sketch, we'll use an Arduino. You can use any micrcontroller that can do microsecond timing, but since its a little tricky to code it up, we suggest verifying the wiring and sensor work with an Arduino to start.
Begin by downloading the DHT library from our github repository. (http://adafru.it/aJW) To download, click the DOWNLOADS button in the top right corner. Rename the uncompressed folder DHT and make sure that it contains the dht.cpp file and others. Then drag the DHT folder into the arduinosketchfolder/libraries/ folder. You may have to create that libraries sub-folder if it doesnt exist. Restart the IDE
Now load up the Examples->DHT->DHTtester sketch

© Adafruit Industries

https://learn.adafruit.com/dht

Page 7 of 10

If you're using a DHT11 sensor, comment out the line that sets the type:
//#define DHTTYPE DHT22 // DHT 22 (AM2302)

and uncomment the line that says:
#define DHTTYPE DHT11 // DHT 11

This will make the data appear correctly for the correct sensor. Upload the sketch!

© Adafruit Industries

https://learn.adafruit.com/dht

Page 8 of 10

You should see the temperature and humidity. You can see changes by breathing onto the sensor
(like you would to fog up a window) which should increase the humidity.

© Adafruit Industries

https://learn.adafruit.com/dht

Page 9 of 10

Downloads
Arduino library and example code for DHT sensors (http://adafru.it/aJX)
DHT11 datasheet (http://adafru.it/aJY)(in chinese, so see the DHT22 datasheet too!)
DHT22 datasheet (http://adafru.it/aJZ)

© Adafruit Industries

Last Updated: 2016-01-04 12:09:26 PM EST

Page 10 of 10

Similar Documents

Premium Essay

Anything

...of the long-term effects of domestic violence are anxiety, chronic depression, chronic pain, panic attacks, sleep disorders, suicide attempts. Women of domestic violence are called battered; they suffer from physical and mental problems. Most women who are abused feel it is their fault. They believe they are to blame for the abuse, that they caused it, and that they can somehow stop it. They often experience anxiety, tension, low energy, insomnia, change in appetite and physical aches and pains such as headaches. These symptoms are not necessarily caused by physical injury. Often, women are abused feel ashamed of what’s happened. Shame often prevents them confiding in others and keeping their details of abuse away or not wanting to say anything to legal authorities and medical personnel. Women who are abused frequently experience difficulty in expressing anger related to their abuse. Some may turn...

Words: 435 - Pages: 2

Premium Essay

Anything

...Tuberculosis ---------- Tuberculosis (TB) is an infectious disease caused by a germ (bacterium) called Mycobacterium tuberculosis. This germ primarily affects the lungs and may infect anyone at any age. In the United States, the number of TB cases steadily decreased until 1986 when an increase was noted; TB has continued to rise since. Today, ten million individuals are infected in the U.S., as evidenced by positive skin tests, with approximately 26,000 new cases of active disease each year. The increase in TB cases is related to HIV/AIDS, homelessness, drug abuse and immigration of persons with active infections. How is TB Contracted? TB is a contagious or infectious disease that is spread from person-to- person. A person is usually infected by inhaling the germs which have been sprayed into the air by someone with the active disease who coughs. However, inhaling the germ does not usually mean you will develop active disease. A person's natural body defenses are usually able to control the infection so that it does not cause disease. In this case, the person would be infected, but not have active disease. Only about 10% of those infected will actually develop TB in their lifetimes. Active disease can occur in an infected person when the body's resistance is low or if there is a large or prolonged exposure to the germs that overcome the body's natural defenses. The body's response to active TB infection produces inflammation which can eventually damage the lungs. The amount...

Words: 1452 - Pages: 6

Premium Essay

Anything

...Opportunity High potential in attract investors. As we can see here the Telekom Malaysia introduce SME BizFest 2012 aims to provide a synergistic ICT showcase for Malaysian SMEs to increase product and services knowledge and awareness among the fraternity. TM doing this event to empower their businesses via knowledge sharing and by participating in the activities held. In addition, SME BizFest provides the platform for SMEs to interact among themselves and opens up business opportunities through business matching sessions organized during the two-day event. Other than that, from the report the SME BizFest 2012 series is expected to attract more than 500,000 participants from the SME business community in Malaysia who require ICT solutions to improve and enhance their business operations. This will open the opportunity to the TM to attract the investors from the outside country. Because, when many people are participated in these business products it will enhance business processes, increase productivity and business revenues are available at a very special rate throughout the duration of SME BizFest 2012. Growing Broadband Market “Our business segments continue to record strong growth in revenue and business generation especially in our Retail and Global Lines of Business. We will remain focused on expanding our UniFi coverage and capitalise on the strong take-up we are still experiencing to date. The emphasis on customer service and product differentiation is clearly helping...

Words: 808 - Pages: 4

Free Essay

Anything

...Mario Rosales Mrs. Kelley English 1 Pre-AP 3 1 October 2014 Not Everyone Gets Not every child in the world gets the education that they have desire. It’s hard to imagine not to have an education or perhaps the dream to at least learn how to read in their language. Just imagine one of this uneducated child listens to children with his desire say that they don’t like school it would probably get them frustrated because they are getting the education that they may never have in their miserable life. Education is important because every child doesn’t have the opportunity or get to finish it. Lets’ see the view of both of the children’s point of view rich and poor education. A rich child can have the opportunity to attend a privet school where he can get the necessary skills such as Science, English, Math, Social Studies, Writing and a foreign language. He can meet the right individuals to help him go through life. Then when he finishes High school he can choose one of the best privet universities in the USA to become a doctor, lawyer, scientist, business man or even become the president of the United States of America. If he chooses a good career he can get married with a beautiful person have kids, have a house and retire from his career and enjoy the government paying him for nothing. A poor child can’t go to school because their parents couldn’t afford it and is working all day for a low paying job to help his family. Then as the kid becomes older he can become...

Words: 498 - Pages: 2

Free Essay

Anything

...In details apparel manufacturing sequence are given below: Operation | Job | Method | | 01. Design/sketch | It is given by buyers to manufacturers containing sketches including measurements of the style | Manual/computerized    | | 02. Basic block | Without any allowance | Manual/computerized | | 03. Working pattern | Assimilating of diagram of net dimension on paper each and individual part which is called pattern and when we move with it throughout the  whole manufacturing processes. We term it working pattern. | Manual/computerized | | Manual/computerized | 04. Sample making | After getting all the speech the sample is made and sent to the buyers for approval to rectify the faults. | Manual | | 05. Basic manufacturing difference | The critical path is identified i.e the problem during the several operations. | Manual | | 06. Approved sample | After rectify the faults, sample is again sent to buyers. If it is ok, than it is called approved sample. | Manual | | O7. Costing | * Fabric required * Making charge * Trimmings * Profits | Manual | | 08. Production pattern | Add allowance with net dimension. | Manual/computerized | | 09. Grading | It is done according to different size. | Manual/computerized | | 10. Marker making | Maker is a thin paper which contains all the components of all sizes of a particular style. | Manual/computerized | | 11. Fabric spreading | Fabric is spreaded in lay form. | Manual/computerized | | 12. Cutting...

Words: 350 - Pages: 2

Premium Essay

Anything

...Abstract: The researchers aimed to develop a new product that will benefit the students like us. To this objective, our team comes up with the idea of creating glue based from milk. Glue has been an important material at home, at school and at office. Most of the commercially available glue is claiming to be non-toxic. However, we are still uncertain of this claim since they contain preservatives that may harm both the user and the environment Casein, a protein obtained from milk, has been long proven to play an important role in the production of glue. It can be obtained from milk by means of adding vinegar into the milk. The curd formed from the reaction is mixed with baking soda. The produced glue from milk may vary in consistency depending upon the amount of milk, vinegar, water and baking soda used. Other research conducted claims that glue made from milk casein is waterproof and can be used for bottle labeling and cigarette packaging .The product produced by our team is cheap and effective. Students can replicate our procedures to create their own milk glue. Chapter 1 Introduction The first evidence when glue used for the first time dates back in 4000 B.C., Archaeologists found foodstuff with deceased when they were studying burial sites of historical tribes in the pottery vessels, which were repaired by some sticky stuff of trees ap. They also found ivory eyeballs into eye sockets in Babylonian temples .In our modern time, glue may vary from industrial...

Words: 344 - Pages: 2

Premium Essay

Anything

...CHAPTER 2:Global E-Business: How Businesses Use Information Systems Business processes: Workflows of material, information, knowledge Sets of activities, steps May be tied to functional area or be cross-functional Businesses: Can be seen as collection of business processes,may be assets or liabilities *Examples of functional business processes Manufacturing and production >Assembling the product Sales and marketing >Identifying customers Finance and accounting >Creating financial statements Human resources >Hiring employees *Information technology enhances business processes in two main ways: Increasing efficiency of existing processes * Automating steps that were manual Enabling entirely new processes that are capable of transforming the businesses * Change flow of information * Replace sequential steps with parallel steps * Eliminate delays in decision making *Types of Business Information System Transaction processing systems * Perform and record daily routine transactions necessary to conduct business * Allow managers to monitor status of operations and relations with external environment * Serve operational levels Management information systems * Serve middle management * Provide reports on firm’s current performance, based on data from TPS * Provide answers to routine questions with predefined procedure for answering them * Typically have little analytic...

Words: 845 - Pages: 4

Premium Essay

Anything

...Jean Piaget’s Theory Christian problem solving behavior from 8 through 18 months Christian is doing just great. He is learning new things every day and showing remarkable motor skills. Developmentally he appears to be progressing well with many of the skills important for his age. He organizes his toys by color or size, has a good memory for the location of previously hidden objects when playing games with us, and is able to solve simple problems with little or no help. Emotionally he is happy and easy to deal with. The issue he had with relating more with his father has been solved and he seems almost equally comfortable with both of us. Christian still has some trouble with meeting new people, but the intensity of his reactions has eased, and he warms up more quickly. He gets along well with the people he is comfortable with, and interacts socially with them. Again, I'm not worried about this; I hope he always shows discretion. Physically he is very active and energetic. His interactions are very cooperative and team oriented when playing with others, with only occasional fits, usually when overly tired or hungry. Emotionally we haven't seen any directional changes. He is still even tempered and friendly, with the changes we're seeing being mostly the development and growth of the personality she developed originally. With regard to his personality, we are trying to tailor our rearing techniques to match what we believe to be the best "goodness of fit" for him. For example...

Words: 532 - Pages: 3

Free Essay

Anything

...[pic] School of Management Semester 1, Academic Session 2015/2016 Bachelor of Management COURSE OUTLINE ATW 395/3 – International Business Lecturer: Dr.Shankar Chelliah (DBA) Day/Time/Venue: Monday/9.00-10.50am/DK S email: shankarchelliah1@gmail.com Tel: 04 653 3426/012-4618731 Office: Level 2, Room 216, School of Management COURSE SYNOPSIS The course aims to introduce the core knowledge of international business as a core subject in the bachelor program. The students will be exposed to globalization, international business theories, government intervention in international business, emerging market, foreign market entry strategies and the existence of regional economic integration that affect international business. COURSE OBJECTIVES The objectives of the course are: 1. To enable students to understand the impact of globalisation and the key issues facing international businesses 2. To explain the environment in international business such as politics and law, emerging market and the regional economic integration 3. To make students appreciate the existence and use of fundamental international business theories and its evolution 4. To enable students to understand the various entry modes available to capture international market LEARNING OUTCOMES At the end of the course, students will be able to: 1. Acquire the pre-requisite knowledge of venturing a business at international level and describe the key concepts that driving globalization...

Words: 1855 - Pages: 8

Premium Essay

Anything

...Case study – New Pressures for Learning and Development in the Fork-Lift Truck Factory of Smarna Gora Holdings Question 1 The positive and negative pressures on learning and development in the fork-lift truck factory of Smarna Gora Holdings Positive Internal | Positive External | 1. In the fork-lift truck factory the commercial department has combined buying and selling to reduce head count and to simplify horizontal communication across the organization. 2. Storage has been moved from the technical department to the commercial department. 3. The number of employees has been reduced to 130 and the work is now more dominated by the commercial department rather than the emphasis being on production. | 1. As for industrial relations, the syndicate structure (trade union) was very strong in influencing how the organization was run and the system of management was strongly paternalistic, making additional assets available for the factory’s use so that employees could rent company houses and travel to company holiday sites. 2. The company is developing a global orientation and making strong use of previous trading relationships with countries such as Iran and India. | Negative Internal | Negative External | 1. There was no planning done at the organizational level and no emphasis on markets nor much on management. 2. There was no client orientation and no need to compete with European countries. 3. Organizational commitment was low, with lower-level employees...

Words: 473 - Pages: 2

Free Essay

Anything

...Tanda 100 hari sebelum sakaratulmaut. Ini adalah tanda pertama dari Allah SWT kepada hambanya dan hanya akan disedari oleh mereka yang dikehendakinya. Walaubagaimanapun semua orang Islam akan mendapat tanda ini cuma samada mereka sedar atau tidak sahaja. Tanda ini akan berlaku lazimnya selepas waktu Asar. Seluruh tubuh iaitu dari hujung rambut sehingga ke hujung kaki akan mengalami getaran atau seakan-akan mengigil. Contohnya seperti daging lembu yang baru saja disembelih dimana jika diperhatikan dengan teliti kita akan mendapati daging tersebut seakan-akan bergetar. Tanda ini rasanya lazat dan bagi mereka yang sedar dan berdetik di hati bahawa mungkin ini adalah tanda mati maka getaran ini akan berhenti dan hilang setelah kita sedar akan kehadiran tanda ini. Bagi mereka yang tidak diberi kesedaran atau mereka yang hanyut dengan kenikmatan tanpa memikirkan soal kematian, tanda ini akan lenyap begitu sahaja tanpa sebarang munafaat. Bagi yang sedar dengan kehadiran tanda ini maka ini adalah peluang terbaik untuk memunafaatkan masa yang ada untuk mempersiapkan diri dengan amalan dan urusan yang akan dibawa atau ditinggalkan sesudah mati. Tanda 40 hari sebelum hari mati Tanda ini juga akan berlaku sesudah waktu Asar. Bahagian pusat kita akan berdenyut- denyut. Pada ketika ini daun yang tertulis nama kita akan gugur dari pokok yang letaknya di atas Arash Allah SWT. Maka malaikat maut akan mengambil daun tersebut dan mula...

Words: 514 - Pages: 3

Free Essay

Anything

...CHAPTER 2 REVIEW OF RELATED LITERATURE AND STUDIES This chapter presents the pieces of literature and studies that were found relevant to the topic. An Integrated School Management System plays a great role in simplifying the task of employees at school and gratifying the needs of the customers and officials of the schools. There are different products from different companies that offered school management system to sustain the necessity and will handle jobs such as admission and marketing support, student information and enrollment system, student service management and student performance or the grading system. Foreign Literature Super Technologies Inc. is an innovative IT company which was established by Rehan Ahmed and Suzanne Bowen in Florida, USA. The company offered different software products for management services such as the school management system. According to the owner, a School Management System is a great on-line support that can help with the daily school management routines and also can save time and get a full control access with the school tasks. The main principle of the system is security – the security subsystem supports dividing users into several groups having its own set of rights for viewing and changing data. The systems’ highest reliability is based on transactions. Transactional system never allows data to be lost or corrupted because of accidents such as electricity failure and hardware malfunction and all the...

Words: 1790 - Pages: 8

Premium Essay

Anything

...Genesis 1:26-27- God made man in his likeness God gave dominion over every living thing on earth. Psalms 8:4-8 What is man that God cares about him? God made man a little lower than the angels God gave man dominion over the entire creature on earth Acts 17:27-29 Human live and move in God. We are God’s offering. God’ not an image of stone, gold or silver Ephisians2: vs. 10 We are God’s workmanship We are created in Christ Jesus to do good works which God prepared for us to do POINTS Jesus said remain in me and I will remain in you. You did not choose me I chose you. Jesus is the true vine. The human family Gen 22:20 -Nahar’s wife Mikah having children. - Abraham was Nahar’s brother Eph 3:15 -The whole family on earth derives its name from the father Acts 3:25 -We are the children/heirs is the prophets and of the covenant God made with Abraham, Isaac and Jacob. St. John 16 -Jesus told his disciple that he was going to go back to his father who sent him -He said unless he goes, the counselor will not come to them. -When the counselor comes, he will convict the world of guilt, sin and righteousness. -He will also guide you n all truth -The Holy Spirit will bring glory to Jesus by taking what belongs to him and making it known to his disciples. -God loves the disciples because they believed that Jesus came from God. -A time will come when Jesus’ disciples would desert...

Words: 271 - Pages: 2

Free Essay

Anything

...Figure 1: The Industrial Accident Statistics of Construction in Malaysia from 2008 to 2012 (Source: Department of Occupational Safety and Health, Malaysia, 2013) Table 1: Industrial Accident Statistics of Construction in Malaysia from 2008 to 2012 Year | Death | Permanent Disability | Non – Permanent Disability | 2008 | 72 | 2 | 55 | 2009 | 71 | 6 | 38 | 2010 | 66 | 4 | 50 | 2011 | 51 | 5 | 43 | 2012 | 67 | 12 | 40 | The chart above shows the industrial accident statistics of construction in Malaysia for the past five years, from 2008 to 2012. It can be divided into three categories, which are death, non – permanent disability and permanent disability. From the chart, in 2008, it gives the highest number of death, with 72 victims, whereas in 2011, it gives the lowest number of death, with 51 victims. In 2008 to 2011, the numbers of death are decreased, but it was suddenly increased in 2012. As we can see, the permanent disability gives the lowest number compare to the death and non-permanent disability. The highest and lowest numbers of the permanent disability are in 2008 and 2012, with 2 and 12 victims, respectively. For the first four years, which is from 2008 to 2011, is fluctuated dramatically, falling from 55 to 38 victims, before it increasing to 50 victims. However, in 2012, it decreased again by 40 victims. In our opinion, there are many causes for the accidents that occur in construction industry. This is because in the construction industry...

Words: 690 - Pages: 3

Free Essay

Anything

...Summation notation Summation notation is a convenient way to represent the sum of many terms. (It iis also called Sigma notation, since it uses the Greek letter Σ (Sigma)). If f is a function, then b f (k) = f (a) + f (a + 1) + f (a + 2) + . . . + f (b). k=a . Here are some examples: • • • • 5 k=1 k 3 = 13 + 23 + 33 + 43 + 53 = 225. = 1/1 + 1/2 + 1/3 + . . . + 1/100 ≈ 5.1873. = 1/1 + 1/2 + 1/3 + . . . + 1/n. 100 1 k=1 k n 1 t=1 t 15 x=1 2 = 2 + 2 + . . . + 2 = 15 · 2 = 30 15 times • 8 x=2 sin(π/x) = sin(π/2) + sin(π/3) + . . . + sin(π/8) ≈ 4.4885 Here are some handy rules for working with sums, where c is some constant: • • • n x=m cf (x) = c n x=m f (x). n x=m n x=m n x=m (f (x) n x=m (f (x) − g(x)) = + g(x)) = f (x) − f (x) + n x=m n x=m g(x). g(x). Here are some classical formulas that might come in handy: • • • • • n i=1 n i=1 n i=1 1 = n. c = cn. i= n(n+1) . 2 n(n+1)(2n+1) . 6 n(n+1) 2 2 n 2 i=1 i n 3 i=1 i = = . For details, see Appendix E in the text. Most of the second set of formulas can be proved using mathematical induction. 256 2π Calculator sums. It is often useful to use the calculator to find sums such as k=1 cos2 π + k 256 . This would be tedious to calculate by hand. The two commands to use are sum and seq, which on the TI-83, can be found in the LIST menu, under the OPS and MATH sub-menus, respectively. The command seq has the format: seq(expression,variable, lower, upper) This returns...

Words: 651 - Pages: 3