'Serial1' was not declared in this scope for automatic plant watering
The UNO only has one serial port, named Serial.  You can create another one using SoftwareSerial (which you have included but not used) and you can, if you choose, name this Serial1.

#include &lt;SoftwareSerial.h&gt;

SoftwareSerial Serial1(4, 5); // RX, TX