Sprinkler of automatic watering in garden