16*2 lcd printing garbage


I am using 16*2 lcd and a button.I wanted to print some characters on lcd but it is showing me garbage when I print it in void loop.
I am displaying hello world after initialization in setup.that is displaying fine.
I am struggling from 3 hrs can anyone say me the solution.



I have faced this issue when I first started doing projects on arduino.
I think you have declared pins twice on different variables due to that it is acting weird.
and do clear lcd before printing anything.