i am not good at coding
Looking up the format of the Serial.begin() function, and looking at some examples that use it, is not rocket science. Even a lousy programmer can do that.
Looking up the format of the Serial.print() function, and looking at some examples that use it, is not rocket science. Even a lousy programmer can do that.
Looking up the format of the Serial.println() function, and looking at some examples that use it, is not rocket science. Even a lousy programmer can do that.
The hard part will be determining what to print. What is your program reading from the sensors? You don't know? So, print the value. When you are sure that the value(s) make sense, you can comment out the print()s.
Either make the delay() value reasonable, or get rid of it. I seem to recall that there is an issue with delay(0) causing problems. Seeing as how it is a useless thing to do, the urgency for fixing the problem is not really there.