Tag Archives: sensor

Soil Moisture Measurement using Arduino

Soil Moisture Sensor can be used to detect water level on the soil, if the soil moisture is depleted it will send a signal to HIGH or give corresponding analog output. This sensor uses two probes to pass the current through the soil, and it reads resistance to get the moisture level, the more water into the soil the more soil conduct the electricity easily. Less resistance if the soil is dry.

The module uses a LM393 precision voltages comparator capable of single or split supply operation. Continue reading Soil Moisture Measurement using Arduino

Arduino Rain Sensor Interfacing

Rain Sensor Module

Rain Sensor module allows to measure moisture via analog output pins and it provides a digital output when a threshold of moisture is exceeded. The module is based on the LM393 op amp. It includes the electronics module and a printed circuit board that “collects” the rain drops.  As rain drops are collected on the circuit board, they create paths of parallel resistance that are measured via the op amp. The lower the resistance (or the more water), the lower the voltage output. Conversely, the less water,  greater the output voltage on the analog pin.  A completely dry board for example will cause the module to output five volts. Continue reading Arduino Rain Sensor Interfacing

Arduino Air Pressure Measurement

Definition

                Pressure is defined as force per unit area that a fluid exerts on its surroundings. You can measure this force by detecting the amount of deflection on a diaphragm positioned inline with the fluid. Given the known area of the diaphragm, pressure can then be calculated. Pressure sensors are packaged with a scale that provides a method to convert to engineering units. The SI unit for pressure is the Pascal (N/m2), but other common units of pressure include psi, atmospheres, bars, inches of mercury, millimeters of mercury. Continue reading Arduino Air Pressure Measurement

Arduino Pressure Measurement – BMP180

Definition

                Pressure is defined as force per unit area that a fluid exerts on its surroundings. You can measure this force by detecting the amount of deflection on a diaphragm positioned inline with the fluid. Given the known area of the diaphragm, pressure can then be calculated. Pressure sensors are packaged with a scale that provides a method to convert to engineering units. The SI unit for pressure is the Pascal (N/m2), but other common units of pressure include psi, atmospheres, bars, inches of mercury, millimeters of mercury. Continue reading Arduino Pressure Measurement – BMP180

DHT11 Humidity Temperature Sensor

Definition

Humidity is the amount of water vapor in the air. Water vapor is the gaseous state of water and is invisible. Humidity indicates the likelihood of precipitation, dew, or fog. Higher humidity reduces the effectiveness of sweating in cooling the body by reducing the rate of evaporation of moisture from the skin.

 DHT11 Humidity Temperature Sensor

The DHT11 humidity and temperature sensor measures relative humidity (RH) and temperature. Relative humidity is the ratio of water vapor in air vs. the saturation point of water vapor in air. The saturation point of water vapor in air changes with temperature. Cold air can hold less water vapor before it is saturated, and hot air can hold more water vapor before it is saturated. The formula for relative humidity is as follows:

Relative Humidity = (density of water vapor / density of water vapor at saturation) x 100%

Basically, relative humidity is the amount of water in the air compared to the amount of water that air can hold before condensation occurs. It’s expressed as a percentage.  For example, at 100% RH condensation (or rain) occurs, and at 0% RH, the air is completely dry.

Components Used

  1. DHT11
  2. Arduino Uno
  3. Connecting Wires

DHT11 Sensor Pinout

DHT11 Pin out
DHT11 Pin out

DHT11 Arduino Circuit Diagram

DHT11 Arduino Circuit Diagram
DHT11 Arduino Circuit Diagram

Arduino Code for DHT11 Humidity Temperature Measurement

This code requires DHT11 Library Download From: https://github.com/adafruit/DHT-sensor-library

//Humidity and Temperature Measurement
//www.circuits4you.com
#include <dht.h>

dht DHT;
#define DHT11_PIN 2

void setup(){
  Serial.begin(9600);
}

void loop()
{
  int chk = DHT.read11(DHT11_PIN);
  Serial.print("Temperature = ");
  Serial.println(DHT.temperature);
  Serial.print("Humidity = ");
  Serial.println(DHT.humidity);
  delay(1000);
}

DHT11 Humidity Temperature Measurement Result

Open serial monitor and observe the readings. Blowing air on sensor will change the humidity readings.

DHT11 Temperature Humidity Result
DHT11 Temperature Humidity Result

For more Weather related other parameters measurement see below links

  1. Barometric pressure measurement
  2. Rain Sensor interface with Arduino