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


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


Leave a Reply

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