Giter Site home page Giter Site logo

dedsd / humidity-monitor-with-arduino Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 222 KB

A humidity monitor with arduino, DHT11 sensor and led rgb that shows you if the humidity in your local is between 30-50%, bellow 30% or higher than 50%

C++ 100.00%

humidity-monitor-with-arduino's Introduction

Humidity monitor with arduino

A humidity monitor with arduino, DHT11 sensor and led rgb that shows you if the humidity in your local is between 30-50%, bellow 30% or higher than 50%.


How it works

First we include the DHT sensor library, define the pin where the sensor is (in this case port 5) and the DHT type (in this case DHT11). Then we define the pins where the terminals in the rgb led are, start the serial, start the DHT sensor and put the pins of the rgb led in output mode. In the loop we define that every 100ms(1 second) the sensor will measure the humidity. If the returned value is not a number it will read it again. If it is a number it will continue and then print on the serial the value found. Then the led will turn to the colors:

  • cian When the humididty is equal or between 30-50%
  • yellow When the humidity is bellow 30%
  • red When the humidity is higher than 50%

Components

  • Arduino UNO R3(or compatible with)
  • DHT11 sensor
  • Led rgb
  • Resistors 220 ohms 3x
  • Resistor 10k ohms
  • Jumpers
  • Breadboard

Circuit

circuiti


Libraries

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.