Skip to main content

SOIL MOISTURE SENSOR USING ARDUINO WITH CONNECTION AND CODE


Soil moisture sensor is the sensing element which determine the volumetric amount of water in the soil .The sensor sense the amount of water by passing an minute voltage at its terminal .Then when the water presence is detected it send an minute voltage to the amplifying circuit and it is further amplified and send to the Arduino.
Components Required:
                      1) Arduino
                      2) Soil Moisture sensor
                      3) Led
                      4) Connecting wires
Procedure:
                  STEP 1: Take the arduino and connect it to soil moisture sensor.
                  STEP 2: Connect the +vcc pin of soil moisture sensor to the +5v pin of the arduino and connect GND pin of sensor to the GND of the arduino
                  STEP 3: Connect the A0 pin of the soil moisture sensor to the arduino
                  STEP 4: Connect led  positive to the 13pin of the arduino and connect GND to GND pin of the arduino.
                STEP 5: Now copy the code given below and compile it to the arduino and run it.
                
                  



Source Code:
int led = 13;//NBSL COMMERCIAL
void setup() {
  Serial.begin(9600);
Serial.println("NBSL COMMERCIAL");
    pinMode(led, OUTPUT);
}

void loop() {
  int sensorValue = analogRead(A0);
  Serial.println("SOIL" );
  Serial.println(sensorValue);
  delay(1);
  if (sensorValue >A 1000)
 {
  Serial.println("WATER PRESENCE FOUND");
  digitalWrite(led, HIGH);
   delay(1000);
 }
 else if (sensorValue < 1000)
 {
  Serial.println("NO WATER PRESENCE");
  digitalWrite(led, LOW);
   delay(1000);
 }

}
WORKING  VIDEO:

Comments

  1. This comment has been removed by a blog administrator.

    ReplyDelete
  2. The soil moisture sensor is the most amazing sensor used to measure the quantity and level of water present in the soil. Because of its advanced features this sensor used in application such as agriculture, indoor planting system, and lawns. You can buy the best grade soil moisture sensor, wireless humidity sensor, wireless vibration sensor, wireless light sensor, and more sensors at reliable price from Ubibot.

    ReplyDelete

Post a Comment

Popular posts from this blog

India Space Research

INDIAN SPACE RESEARCH                                      The Technology is developing day by day and new innovations are coming out day by day. Many things are runs with help of satellites for example TV receiver, Weather Forecasting, Global positioning systems(GPS), Defense purposes. Thus Aerospace development is very important for an country. INDIA , places 5 th place in space developments. The ISRO is the Indian organization of space research Developments. What is ISRO? ISRO expands as Indian Space Research Organization, which is the Indian space Development organization. ISRO Ranks 5 th place in space research. Who founded ISRO?  Indian Space Research Organization (ISRO) was founded by Jawaharlal Nehru, who is the First Prime Minister of INDIA and Scientist Vikram Sarabhai, who is known as the father of space programs in the year 1962 as Indian National Com...

How does ant walk in straight line

How does ant walk in straight line? Normally, Ants live as big colony and it is organized. When the ant found food it takes a small piece of food and returns to its colony, while returning from the food area to its colony ant releases chemical called pheromones with the help of pheromones  other ants in their colony goes to the food area and brings the food to their colony. The pheromones evaporates at certain time of interval so other ants which carry food also releases pheromones it helps in reaching of other ants from colony to reach food. Every each set of ant consists of unique set of pheromones so it helps to find other colony and its does not allow other colony ant to enter in their colony and even it attacks them. How does old book smell good? Smell of book is basically by the paper and ink and the paper is primarily made up of wood and the wood is made up of cellulose and lignin . Over years, the book is exposed to heat, light, moisture and it bega...