try this ... https://www.pcbway.com/project/shareproject/Automatic_plant_watering_system_using_Microcontroller_with_built_in_motor_driver.html