Attiny85 Plant Watering system error

You cannot pass a digital pin number to analogRead(). Passing a number will read the ANALOG pin of that number. If you use the A# constants, eg, A1, A2, etc, that will work with both digitalRead/pinMode and analogRead; for you pins 2 and 3 are A1, and A3 respectively.

See part specific documentation for pin functions: