merging sketches help! please

john321123:
Pin 4 output goes to a separate relay.

That was NOT the point of my comment. The fact that you THINK you are using pin 4 makes things worse :slight_smile:

Read the line of code more carefully.

...R