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

What if you could control the Internet

At present situation internet is the basic need for us, we are using the internet for many purposes from medicine to aerospace internet is used and helps in day to day life activates. Internet is spread out in all the areas and we could say it is the most powerful tool in the world, if you got a chance to control the internet what will you do.                                                Image Credit : Internet In general, more than 5 billion google searches are done all over the world and millions of hours videos are watches in facebook and YouTube daily. What if you got a chance to control the internet, whether it is possible to control the internet, the internet is actually controlled with the help of 7 keys and by 14 peoples all around the world. They maintain the DNS which helps in accessing the internet all around the world. The DNS helps in accessing ...

Creating Artificial Planet

Already our Earth is loosing the habitable tendency due to the deforestation, Climate changes, etc. These all causes our Earth as inhabitable planet, for life better we should move into another planet to move into another planet we could create our own planet. But, it is possible to build a planet as like Earth with Atmosphere, Air, Water, Moderate Temperature, Gravity, etc. Theoretically, it is said we could build a planet like Earth. We could build our own planet right in our solar system for constant temperature as we get in our planet “Earth”. We could probably use asteroids in our solar system to build our artificial planet, but we are having only lower amount of asteroids in our solar system so we cannot build a planet as we expected so we are going to use OORT CLOUD to build our Artificial Planet but problem with this OORT CLOUD is it is so far from our Earth, we haven’t still invented that fast vehicle to bring that materials here, so this case could not help us. We have ...

Nasa Spacecraft OSIRIS-REX arrives at ancient asteroid Bennu

What is OSIRIS-REX?            OSIRIS-REX is a man-made artificial satellite which was launched on 8 th September 2016 from Cape Canaveral Air force station. OSIRIS-REX is launched to take samples from the ancient asteroid Bennu and it is estimated to return Earth on 2023. What is Bennu Asteroid?             Bennu was discovered on 11 th September 1999 by Lincoln-Near Earth Asteroid research . The Bennu asteroid is 492 meter wide and it has a mass of 78 billion kilogram. Scientist estimated Bennu could pass closer to Earth than moon in 2135, which close distance of 250,000 miles. What is OSIRIS-REX Work?              The OSIRIS-REX is send to take samples from the Asteroid Bennu to help scientist understand how heat radiated from sun is gently steering Bennu on increasing menacing course through solar system. The OS...