Hardware
To make this project, Plant Watering System. At first I soldered all the components in the zero pcb. After finishing the project, I made connection between relay module and water pump. I made a final video of the project.
The connection of the circuit
Arduino D5 to soil moisture sensor
Arduino D3 to bc547 base pin
And then I connect all the (+ve) and (-ve) points. When the moisture of the soil is high then the the pump gets automatically off. And when the moisture of the soil is low then the pump gets automatically on.