Check the coding syntax error
The most common problem for a programmer is missing semicolons at the end of a line. The second most common error is missing the curly bracket. Also, try to avoid typos or your code will never run properly. Follow the log for the Arduino IDE to debug the error. And, since Arduino code is case sensitive, you must not mix up capital and lower case letters while working with the coding syntax.