Soil Moisture sensor with Arduino | How to read soil moisture values [with code Explained]

Поділитися
Вставка
  • Опубліковано 15 жов 2024

КОМЕНТАРІ • 66

  • @VijjiKadavakollu
    @VijjiKadavakollu 14 днів тому +2

    Sir in which app your coding?

    • @abhisheksukumar9591
      @abhisheksukumar9591 14 днів тому +2

      He is coding in Arduino IDE

    • @techathome
      @techathome  14 днів тому +1

      It is Arduino IDE for computer: downloads.arduino.cc/arduino-1.8.12-windows.exe
      You can also use smartphone: ua-cam.com/video/HueSXtQQNLM/v-deo.html

  • @AbhijitPatiBEC
    @AbhijitPatiBEC 11 місяців тому +1

    if we want to measure and print the moisture value in percentage like 45% or 87% how can we convert this analog data to this required percentage

    • @techathome
      @techathome  11 місяців тому +1

      (analog data/1023)*100
      Since Arduino has 10bit ADC, the maximum analog output is 2^10 = 1023

  • @stardusthalo9996
    @stardusthalo9996 Місяць тому +1

    Sir How much is overall cost of the set up... Except for laptop?

    • @techathome
      @techathome  Місяць тому +1

      Prices vary.
      You can check prices for arduino, LCD, moisture sensor, relay module, pump.

  • @IslamIslam-zv9ft
    @IslamIslam-zv9ft 3 місяці тому

    I bought one and when i put it in wet soil the value drop from 1023to 1019only why ?is it damaged or something

    • @techathome
      @techathome  3 місяці тому

      There is blue colour potentiometer screw on the sensor module. Rotate that and change the sensitivity.

    • @IslamIslam-zv9ft
      @IslamIslam-zv9ft 3 місяці тому

      @@techathome isn't for digital values i used the analog pin

    • @techathome
      @techathome  3 місяці тому

      It will modify both. You can rotate and check even for analog pin as well.

  • @hbd1458
    @hbd1458 Місяць тому

    I follow everything in the video but my coding said error 'else' without a previous 'if' .. but i already put if before the 'else'

    • @techathome
      @techathome  Місяць тому

      Can u send photo on mail

  • @KumiliNandu
    @KumiliNandu 5 місяців тому

    i am getting this error in arduino "" Board at null is not available"" what should i do

    • @techathome
      @techathome  5 місяців тому

      Did you set the com port in tools?

  • @kummarinagaraju4625
    @kummarinagaraju4625 Рік тому

    what platform you used to run the code

  • @NiharikaNishvi321-qi7jz
    @NiharikaNishvi321-qi7jz 10 місяців тому

    in this divices connect to a mobile r not tell me and how to connect and which app I will used

  • @velaboi4711
    @velaboi4711 4 місяці тому

    Can anyone give the code in the reply?? Because the drive link in the description box not opening

    • @techathome
      @techathome  4 місяці тому

      Send mail to: deepakhd20@gmail.com

  • @chisomihesie8041
    @chisomihesie8041 Рік тому +1

    cant the vcc be connected to the 3.3v

    • @techathome
      @techathome  11 місяців тому

      It can be connected, but the range of values coming from sensor also changes since the voltage drop changes.
      Based on this new values, you have update the condition check in the code.

  • @Meyouknowd
    @Meyouknowd 4 дні тому

    sir in what units are these output values? Like the 1000+ when the soil is dry.

    • @techathome
      @techathome  4 дні тому

      These are not physical values.
      Based on the voltage from sensor(0 to 5v), we will be getting ADC values (0 to 1023).
      You can convert this to percentage also like this,
      moisture_percentage = (100 - ( (sensor_data /1023.00) * 100 ) );

    • @Meyouknowd
      @Meyouknowd 4 дні тому

      @@techathome thank you sir,
      Also, can we use this setup to get the resistance of the soil, like can we write a code like that? Or can we use Arduino to simultaneously plot a graph 📉📈 alongside to make the project more fancy. Please suggest something to me sir, it's really urgent. Love from IIT Roorkee.

    • @techathome
      @techathome  4 дні тому

      Resistance calculation I have not done, need to check.
      On the graph,
      You can use Serial plotter option inside Arduino IDE itself under Tools.

  • @funwithrocketry
    @funwithrocketry Рік тому +1

    Can you add a lcd display to it

    • @techathome
      @techathome  Рік тому +3

      We will be making next video completely on automated plant watering system along with LCD display

  • @dhartijoshi2513
    @dhartijoshi2513 2 місяці тому

    Can u please provide code as the link is not opening.

    • @techathome
      @techathome  2 місяці тому

      Can u send mail: deepakhd20@gmail.com

  • @junereyrodriguez3515
    @junereyrodriguez3515 10 місяців тому +2

    How many square feet and square meters of land can detect soil moisture sensor?

    • @drepyman1385
      @drepyman1385 6 місяців тому

      It works through conductivity, so that means the ground acts like an potentiometer and does not have an “range”

  • @ramyasri3241
    @ramyasri3241 11 місяців тому

    Bro how to change the soil moisture in that

    • @techathome
      @techathome  9 місяців тому

      I didn't get your question

  • @VijjiKadavakollu
    @VijjiKadavakollu 14 днів тому

    Sir what is the main object of this project!

    • @techathome
      @techathome  14 днів тому

      This is not the project. This video is on how soil moisture sensor works and how to use.
      For project refer this video: ua-cam.com/video/8g8oiIa98xc/v-deo.html

    • @VijjiKadavakollu
      @VijjiKadavakollu 14 днів тому

      @@techathome can we do this coding in Tony app is this coding works in that app

    • @VijjiKadavakollu
      @VijjiKadavakollu 14 днів тому

      @@techathome I want to do this as a mini project in my college

    • @techathome
      @techathome  14 днів тому

      I have not used that app.
      You can go with Arduino droid app, You can get video on this app in our channel.

    • @VijjiKadavakollu
      @VijjiKadavakollu 14 днів тому

      @@techathome can send that vedio link to me

  • @martvinzmarumi8015
    @martvinzmarumi8015 Місяць тому +1

    nextime add delay for 1 second in your code so that sensor value will be displayed every second.

  • @diyfarminglife
    @diyfarminglife Рік тому +2

    Well explained🙏

  • @PreethichowdaryKuppuri
    @PreethichowdaryKuppuri 10 місяців тому

    Which algorithm u used in that code

    • @techathome
      @techathome  10 місяців тому

      There is no specific algorithm. Simple If statements to compare sensor value is less than or greater than the thresholds.

  • @CHIKKUGAMER-su1bx
    @CHIKKUGAMER-su1bx 6 місяців тому

    Sir is this code working

  • @dashensingh6823
    @dashensingh6823 Рік тому

    Make a video on drifting as well like in forza or assetto corsa

    • @techathome
      @techathome  Рік тому

      My laptop doesn't support such games, otherwise I would have tried

    • @whoami8247
      @whoami8247 Рік тому

      How is that connected to arduino😂

    • @techathome
      @techathome  Рік тому +1

      It's just for thumbnail

  • @CHIKKUGAMER-su1bx
    @CHIKKUGAMER-su1bx 6 місяців тому

    Thank you sir

  • @muhammadzayn5523
    @muhammadzayn5523 10 місяців тому

    Can this system be notified in telegram?

    • @techathome
      @techathome  9 місяців тому

      As of now I have not explored. I have tried it will Bluetooth mobile app. See if this video helps you: ua-cam.com/video/jVy6Z5qA_h0/v-deo.htmlsi=oQGJcZIXu0Gytaem

  • @CHIKKUGAMER-su1bx
    @CHIKKUGAMER-su1bx 6 місяців тому

    It is working