In this video, we will interface the Soil Moisture Sensor with Arduino in Tinkercad to detect the percentage of moisture available in the soil. #soilmoisturesensor #arduino #tinkercad
It is the maximum value(threshold value) of the soil moisture sensor, so we divide it by 539 and multiply that by 100 to convert the data into percentage. Hope that helps :)
code of the program :
int moistureValue;
float moisture_percentage;
void setup()
{
Serial.begin(9600);
}
void loop()
{
moistureValue = analogRead(A0);
moisture_percentage = ((moistureValue/539.00)*100);
Serial.print("
Moisture Value : ");
Serial.print(moisture_percentage);
Serial.print("%");
delay(1000);
}
Thanks my friend so easy to understand
thank you bro
hello sir, why the variable moistureValue is divided by 539
It is the maximum value(threshold value) of the soil moisture sensor, so we divide it by 539 and multiply that by 100 to convert the data into percentage. Hope that helps :)
Hi there, can you explain what is begin 9600, what is that figure from?
Speed of the Serial moniter
sir how to use node MCU
Sir plss arduino soil moisture humidity and air plss
Bhai description me code dal deta
float soil = (soil_value/539.00)*100;
Mit ?