int sensorPin = 23; // select the input pin for the potentiometer
int sensorValue = 0; // variable to store the value coming from the sensor
void setup() {
pinMode(8, INPUT);
Serial.begin(115200);
}
void loop() {
// read the value from the sensor:
sensorValue = analogRead(sensorPin);
Serial.seize();
Serial.print("Moisture Sensor Value: ");
Serial.println(sensorValue);
Serial.release();
delay(1000);
}
