Hello All.
Im a bit of a newb to electonics but realy enjoying it. Im a little stuck with a soil moisture sensor that I bought.
I have the VVC on the sensor connected to 5v, the GND to ground on the Arduino UNO. Ive tried both the analogue and digital pins simultaneously and independently. I wrote a simple sketch that just displays the values in the serial monitor. However I cant get my value to change, it stays the same weather the probe is in water or thin air.
Do I have a dudd?
Is there any way I can test, other than what I have done, perhaps with my multimeter or something?
Here's the sketch.
int wetRead = A0;
int ledPin = 13;
int digRead = 3;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
pinMode(13, OUTPUT);
pinMode(wetRead, INPUT);
pinMode(digRead, INPUT);
}
void loop() {
// put your main code here, to run repeatedly:
int wetNum = analogRead(wetRead);
int digval = digitalRead(digRead);
delay(100);
Serial.println(wetRead);
delay(500);
Serial.println(digval);
delay(500);
}