Help With general coding please

Hold on a moment; rewind a little.

What are you trying to do? Explain it without using any Arduino code or class names.

Where did this code come from? Is there a link to a library we can see?

Can you post a complete program with setup() and loop() which demonstrates the problem?