const int waterPump = 3;

void setup() {
  Serial.begin(9600);
  pinMode(waterPump, OUTPUT);
}

void loop() {
  int humidityRaw = analogRead(A0);
  int humidityReal = map(humidityRaw, 950, 0, 0, 100);

  String output = "Humidity ";
  String number = output + humidityReal;

  delay(1000);

  Serial.println(number);

  if (humidityReal > 30) {
    Serial.println("HIGH");
    digitalWrite(waterPump, HIGH);
  } else {
    Serial.println("LOW");
    digitalWrite(waterPump, LOW);
  }
}