WereCatf wrote:It's 1.0V, not 1.1V, but yeah, it sounds like your setup is fine and the issue lies with your code instead. I don't have one of these moisture-sensors, but when connecting to a "real" Arduino-board you're getting values in the range of 0-1023? Mind showing your sketch?
Here is part of testing code ... yes and it works on real arduino board
int moisturePin = A0;
int moistureVcc = 5;
int mappedValue;
(setup)
pinMode(moisturePin, INPUT);
pinMode(moistureVcc, OUTPUT);
digitalWrite(moistureVcc, LOW);
(loop):
digitalWrite(moistureVcc, HIGH);
delay(100);
int moistureValue = analogRead(moisturePin);
mappedValue = map(moistureValue, 0, 1023, 0, 1023); /*0 - 1023*/
Serial.print("Sensor value: ");
Serial.print(mappedValue);
Serial.println(" ...");
digitalWrite(moistureVcc, LOW);
delay(1000);