I have written a code to interface a sensor with PIC18f and display result on LCD(4 bit mode). I have a start/reset button so that i can start the whole program again. My doubt is that first time display works properly but when i restart, the display gives random text sometimes, or LCD doesnt clear and starting text appears along with that. Can you tell me where the problem is? Do i have to use LCD_init(); everytime when restarting?