const int moistureSensorPin = A0; // Change this to the pin for your sensor
void setup() {
Serial.begin(9600); // Start serial communication
}
void loop() {
int moistureValue = analogRead(moistureSensorPin); // Read the sensor value
Serial.println(moistureValue); // Print the value to the Serial Monitor
delay(500); // Small delay for readability
}