Moisture sensor with pump

This is the pump I bought. As its wuite small would a transistor be used?