Arduino Moisture sensor

Moisture sensor 4 pins to Arduino Uno

A0 > A0 
DO > not used
GND > gnd
VCC > 5V

And in your Arduino code

void setup() {
  // initialize serial communication at the 9600 bits per second
  Serial.begin(9600);

}

void loop() {
  // (A0) Read the input on analog pin 0:
  int sensorValue = analogRead(A0);

  Serial.println(sensorValue);
  delay(100);
}

Leave a comment

Your email address will not be published. Required fields are marked *