My 16*2 LCD display works erratically. Please advise.

Try to power arduino via extrenal power not USB. Or USB via AC plug same with you charge mobile phone