Muchika
Published

How to Use Soil Moisture Sensore Using Arduino

Soil Moisture sensor is a sensor that can be used to measure moisture in the soil.

BeginnerProtip3 hours2,441
How to Use Soil Moisture Sensore Using Arduino

Things used in this project

Story

Read more

Code

Soil Moisture

Arduino
int sensorPin = A0;   // select the input pin for the potentiometer
int sensorValue = 0;  // variable to store the value coming from the sensor

void setup() {

  Serial.begin(9600);
  
}

void loop() {
  // read the value from the sensor:
  sensorValue = analogRead(sensorPin);
  Serial.println(sensorValue);
  delay(1000);
  
}

Credits

Muchika
8 projects • 37 followers
share how to, diy, homemade, circuit design and new project ideas.
Contact

Comments

Please log in or sign up to comment.