Arduino temperature LED display project

Difficulty: EASY     Estimated Time: 1-3 Hours



In this project, you will make an Uno board read the temperature from a DHT11 temperature and humidity sensor, and then the Uno will display the temperature on the 2-digit 7-segment LED display.  This project is a great starter project to get comfortable with electronics and the Arduino ecosystem or an excellent project to work through with your kids over the weekend.


Required Parts:


Setup Arduino IDE

Before beginning this project, be sure that the Arduino IDE is properly installed on your computer. This tutorial will walk you through the installation process:


Assemble the Circuit

The first step in this project is assembling the electronic circuit on the breadboard. Follow this diagram and schematic as you connect the LED display and DHT11 sensor to your Uno board.

Arduino temperature LED display project


Program the Microcontroller Board

Once you have the hardware wired properly, it is time to program the Uno microcontroller board. The Uno has to be programmed to read the temperature sensor and then display the temperature on the 7-segment LED display. For more explanation of the programming process, take a look at our Basics of Writing a Sketch article.

DHT11 Temperature & Humidity Sensor

The DHT11 is a digital sensor that measures the temperature and humidity of the air. These values are read from the sensor using a special, one-wire serial communication protocol. There are several libraries available that take care of the intricacies of the communication so that you can focus on your main goals.

7-Segment Displays

Each character of the 7-segment display is made up of seven individual LEDs that have to be lit up together to form numbers. Numbers are converted into the appropriate LED configuration with a table in the software. This can also be done with a software library.

Example Software

This is a sketch example that will read the DHT11 and display the temperature on the LED display. This sketch uses the DHT Sensor Library and the SevenSeg Library to control the display.

Upload the Code

Now that you have your program code ready, go ahead and upload it to the Uno board. Don’t be discouraged if you hit some bumps along the way. You’ll get there and learn with each problem you overcome. Take a look at our Uploading a Sketch article as a guide to help you upload your sketch.

Battery Power

At this point, the project is functioning, but it still has to be plugged into the computer to be powered. An energyShield 2 Basic can be added to your project to provide it with rechargeable battery power. Just move the wires from the Uno headers to the corresponding energyShield headers and then connect the energyShield to the Uno headers. Unplug the USB cable, switch on the energyShield, and you can take your new temperature sensing project anywhere!

Arduino temperature LED display project



These resources offer further explanation of the elements in this project.