Avoid verbatim, wok on your own hypothesis and research work, cite the work of the others ethically, and finally check your manuscript with a good software to avoid any plagiarism.
On your every referenece paper that you are refering, your own comments are necessary. This will completely address the issue of plagiarism except facts numbers and datasheets.
So while writing any paper make sure that you are writing YOUR comments on respective paper that you will be referring.
When you put down the words of another in your notes, make certain that you put the words of another within "quotation marks" and "use a different color of ink" to remind yourself these are not your words.