How to build a Temperature, Humidity, and brightness sensor with an Arduino

The other day I wanted to know the temperature and humidity of my apartment. I started looking into purchasing a plant for my space. I did some research and found out that knowing the temperature, humidity and brightness are good data points in finding a plant that will fit your space correctly. The source I found suggested products to buy to test these points, but I thought hey I can build those measuring tools. Using the Arduino Uno and the basic parts that come with the starter kit I created a nice tool for space atmosphere.

The first sensor that is needed is a DH11 temperature and humidity sensor, this comes with the kit and it will allow to read temperature and humidity. The brightness is from a LDR sensor that records the brightness using an analog to digital converter. Recording the brightness as analog then converts to digital and that reading is the brightness of the input. 1000 is direct sunlight and the lower the number the less bright it is.

Putting these in a circuit with a screen can be done easily. The information can display on the LCD screen conveniently for you to access, instead of being printed to a monitor on the Arduino IDE on your computer.

I have rechargeable lithium-ion batteries that I connected to it. But the kits come with a connector you can connect to a 9volt batter so you can have it placed in your room wherever is convenient; or where you want to record the brightness and other data points.

This can be created easily by anyone with the starter kit that can be bought from Amazon for affordable price. It is easy to build and get the benefits of having a home-made thermostat in your home. There are other simple projects that can be made in a similar fashion to this project.

Here is the circuit.

Here is the schematics for each of the components and I put them together into one circuit.

Now this is the code and the schematic, and it should work for you!

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Cory Hisey

Cory Hisey

I am a Mechanical Engineer graduate and I am currently studying masters of Mechatronics Engineering.