Water Level Sensor

  if ((analogRead(soilMoisturePin) == 1023 && (analogRead(waterSensorPin == 600))))

It is never a good idea to use equality when comparing values from analogRead() as they tend not to be stable. Use >= or <= instead and allow a little leeway with values being compared to.

In particular
analogRead(waterSensorPin == 600)seems to be unlikely to be true most of the time.

Have you tried printing the values after they are read ?