@anshls, your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is not for problems with (nor for advise on) your project
See About the Installation & Troubleshooting category.
===
Take it step-by-step and don't modify too much.
- Take the original code and only add some stuff for the lcd and see if that works.
- Or add serial prints to your new code for debugging.