Can someone help me to remove LCD coding in this code.

I try remove it many times but got error always.

Combination.ino (41 KB)

Check the stickies about posting code. Don't be surprised if nobody ever looks at it until you post it properly. In the meantime, remove the include command for the LCD library, and any reference to LCD you can see, then try to compile. The IDE will refer you to any lines that are not kosher that you have missed.

You’ve got other problems. The code you posted has a lot of duplication. example: 2 setup() functions and will clearly not compile. Where are the references to an LCD ? I could not see anything on quick inspection.