Temperature and Humidity Sensor to Serial Monitor

1. Description

Basic setup allowing periodic readings from a DHT11 temperature and humidity sensor using an Arduino Uno development board. Sensor readings (temperature and humidity) as well as computed values (heat indexes) are printed to the serial monitor.

Difficulty level: beginner.

This is the first part of the Sensor Reading tutorial:

– Sensor Reading Part 1: Temperature and Humidity Sensor to Serial Monitor
– Sensor Reading Part 2: Temperature and Humidity Sensor to HTML
– Sensor Reading Part 3: Temperature and Humidity Sensor to HTML using JavaScript gauges

Related project: Remote Sensor (Temperature and Humidity) Monitoring over RF Link

2. Parts

– 1 x Arduino Uno R3;
– 1 x DHT11;
– Breadboard + wires.

3. Schematics

(click to enlarge)

4. Assembly (breadboard)

(click to enlarge)

5. Code

simpleDHT11.ino – to be uploaded to Arduino:

6. Additional resources

– Adafruit Unified Sensor Driver: https://github.com/adafruit/Adafruit_Sensor
– DHT-sensor-library:

– DHT11 datasheet: https://cdn-learn.adafruit.com/downloads/pdf/dht.pdf

Leave a Reply