Latching Solenoid Arduino

A rectangular 9V battery cannot supply enough current. A capacitor may help in that case.

While most watering solenoids are designed to be used at 12-24V with mains power, a little searching should turn up low power ones which aren't latching.