Arduino Tutorial 52: Portable Temperature and Humidity Sensor with DHT11

This shows our completed build creating a completely portable DHT11 sensor system

In this lesson we build a completely portable Temperature and Humidity Sensor using the DHT11 sensor. The project is powered by a 9 Volt battery, through the power supply board supplied in the Elegoo Kit.  This project builds on the work we did in Lessons 50 and 51.

Also, notice we used an Arduino Nano, which allows the entire project to be build on a single breadboard. This allows a neater, smaller build, and one less likely to have problems from poor or loose connections. The build neatness is also facilitated by using small straight jumper wires, which you can get HERE.

In the configuration in this project, the regulated power supply is providing power to the Arduino through the 5 Volt pin. In such cases, you should not Also plug the USB cable into the arduino. When powering the Arduino with a regulated power supply, do not connect the USB. If you need to program the arduino, disconnect the external power supply first.

The video below gives a detailed step-by-step description of the project.


The code we developed is presented below: