how can i prevent tendonitis recurring when i start weight lifting again?

i just recently started weight lifting with new dumbbells, after a few weeks i began to notice elbow pain and after extensive research i have diagnosed the problem as being tendonitis. its a very, very moderate pain !! and dosnt warrant a doctors appointment as i already know the treatment. anyways i was wondering does anyone know an effictive plan ( such as warm ups) that i can use to prevent the problem resurfacing and slowing me down. Thanks