int sensorPin = A3; void setup() { Serial.begin(9600); delay(500); } void loop() { int sensorValue; sensorValue = analogRead(sensorPin); sensorValue = map(sensorValue, 0, 1023, 0, 100); Serial.print("Soil moisture: "); Serial.print(sensorValue); Serial.println(" %"); delay(500); }