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

Поделиться
HTML-код
  • Опубликовано: 13 окт 2024

Комментарии • 66

  • @VijjiKadavakollu
    @VijjiKadavakollu 12 дней назад +2

    Sir in which app your coding?

    • @abhisheksukumar9591
      @abhisheksukumar9591 12 дней назад +2

      He is coding in Arduino IDE

    • @techathome
      @techathome  12 дней назад +1

      It is Arduino IDE for computer: downloads.arduino.cc/arduino-1.8.12-windows.exe
      You can also use smartphone: ruclips.net/video/HueSXtQQNLM/видео.html

  • @Meyouknowd
    @Meyouknowd 2 дня назад

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

    • @techathome
      @techathome  2 дня назад

      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 2 дня назад

      @@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  2 дня назад

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

  • @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.

  • @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

  • @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”

  • @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.

  • @kummarinagaraju4625
    @kummarinagaraju4625 Год назад

    what platform you used to run the code

  • @chisomihesie8041
    @chisomihesie8041 11 месяцев назад +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.

  • @diyfarminglife
    @diyfarminglife Год назад +2

    Well explained🙏

  • @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

  • @martvinzmarumi8015
    @martvinzmarumi8015 Месяц назад +1

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

  • @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

  • @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?

  • @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

  • @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.

  • @ramyasri3241
    @ramyasri3241 11 месяцев назад

    Bro how to change the soil moisture in that

    • @techathome
      @techathome  9 месяцев назад

      I didn't get your question

  • @CHIKKUGAMER-su1bx
    @CHIKKUGAMER-su1bx 5 месяцев назад

    Thank you sir

  • @dhartijoshi2513
    @dhartijoshi2513 2 месяца назад

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

    • @techathome
      @techathome  2 месяца назад

      Can u send mail: deepakhd20@gmail.com

  • @VijjiKadavakollu
    @VijjiKadavakollu 12 дней назад

    Sir what is the main object of this project!

    • @techathome
      @techathome  12 дней назад

      This is not the project. This video is on how soil moisture sensor works and how to use.
      For project refer this video: ruclips.net/video/8g8oiIa98xc/видео.html

    • @VijjiKadavakollu
      @VijjiKadavakollu 12 дней назад

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

    • @VijjiKadavakollu
      @VijjiKadavakollu 12 дней назад

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

    • @techathome
      @techathome  12 дней назад

      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 12 дней назад

      @@techathome can send that vedio link to me

  • @CHIKKUGAMER-su1bx
    @CHIKKUGAMER-su1bx 5 месяцев назад

    It is working

  • @muhammadzayn5523
    @muhammadzayn5523 9 месяцев назад

    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: ruclips.net/video/jVy6Z5qA_h0/видео.htmlsi=oQGJcZIXu0Gytaem

  • @CHIKKUGAMER-su1bx
    @CHIKKUGAMER-su1bx 6 месяцев назад

    Sir is this code working