Development of a weed activated spraying machine for targeted application of herbicides