Skip to Content
Environmental Monitoring with Arduino
book

Environmental Monitoring with Arduino

by Emily Gertz, Patrick Di Justo
January 2012
Beginner
98 pages
1h 49m
English
O'Reilly Media, Inc.
Content preview from Environmental Monitoring with Arduino

Make the Gadget

This build has several finicky steps. Look at the breadboard view (Figure 7-2) to see how it all fits together.

Parts

  1. Arduino
  2. Ethernet shield
  3. Breadboard
  4. DHT-22 sensor
  5. 4Char display
  6. 4.7K resistor
  7. Red and black jumper wires

Breadboard the Circuit

Step 1 Power the breadboard rails.

Step 2 Connect a red jumper wire from the 3.3v pin on the Arduino to the voltage (red) rail on the breadboard, and a black jumper from the GND pin to the ground (black) rail on the breadboard.

Step 3 Connect a short red jumper from the voltage rail to the voltage (leftmost) pin of the DHT-22 temperature and humidity sensor.

Step 4 Connect a short black jumper from the GND rail to the GND (rightmost) pin of the DHT-22.

Step 5 Connect a green jumper from the DATA (second from the left) pin on the sensor to digital pin 4 on the Arduino.

Step 6 Add a 4.7K resistor between the DATA pin of the sensor and the VOLTAGE pin.

Step 7 Connect a green jumper from Arduino pin 3 to the RX (rightmost) pin of the four-character display, and a black jumper from the GND rail to the GND (leftmost) pin of the four-character display.

The completed circuit for the temperature-humidity-dew point monitor.

Figure 7-2. The completed circuit for the temperature-humidity-dew point monitor.

Write the Code

Load the following sketch onto Arduino. You can find it at EMWA GitHub repository | chapter-7 | TempHumidDewpoint.

/* Temperature-Humidity-Dew Point Monitor This sketch gathers temperature and ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Atmospheric Monitoring with Arduino

Atmospheric Monitoring with Arduino

Patrick Di Justo, Emily Gertz
Make a Mind-Controlled Arduino Robot

Make a Mind-Controlled Arduino Robot

Tero Karvinen, Kimmo Karvinen

Publisher Resources

ISBN: 9781449328603Catalog PageErrata