Humidity sensor with led alarm | Arduino project

This page contains Arduino Humidity sensor with led alarm source code. This project is good for someone who wants to make a humidity meter or hygrometer with led alarm if humidity and temperature over a threshold. It's easy to make and doesn't require an external power supply, just use power from an Arduino UNO R3 board (USB power compatible with this project).

Electronic components list:
1 x Arduino Uno R3
1x 20 x4 I2C LCD display
1 x AM 2320 humidity/temp sensor
1 x 5 mm led ( 2 x if you plan to use led for pin 13 instead built-in led)
1 x 1000 ohms resistor ( 2 x if you plan to use led for pin 13 instead built-in led)
Any USB power adapter, 500 mA current at least.

Here is the Arduino code:
AM 2320 library https://github.com/hibikiledo/AM2320
LCD display i2c library https://github.com/fdebrabander/Arduino-LiquidCrystal-I2C-library


#include <Wire.h>
#include <AM2320.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x3F, 20, 4);
AM2320 th;
int led2 = 12;
vo…

How to use a breadboard for your project

A breadboard is a useful tool that makes any electronic project easier, you don't need to solder electronic component like prototype board, all you can do are just connect an electronic component to a breadboard and see your project working.

However, I saw comments on my youtube channel that they did not know how to use a breadboard but they can read schematic diagram!!! I'm not a fan of simulation software because I was using the software to simulated amplifier IC circuit and it did not work but everything works fine when I use the same circuit in a breadboard.

Two picture below is a breadboard and wiring inside it.


The red line for positive polarity, the Black line for negative polarity, orange lines is connected. Another column is same as the orange column. 

A DIY beginner may confuse and connect electronic component wrong and make circuit not working. See the wrong way to connect electronic component on a breadboard. As you can see the picture below, the IC pin 1-14,2-13,3-12,4-11,5-10,6-9,7-8 are short to each other.
The below picture is right way to connect the IC

Now, you know how to use a breadboard. However, a breadboard not a perfect tool, your project may have strong noise when you test high gain amplifier IC but you can decrease noise with R/C filter.

Enjoy DIY electronic's world!!!


Comments