jaredm2195:
I know that, but I am asking what the code would look like as a whole if I combined them and put the second code into the first one and just added the part with the tone playing.
It would look like the code you have now only longer and some lines would be different. That is what it would look like.
Are you saying you want me to write the whole thing for you?
If so:-
-
We don't do that here, see BEGINNERS: We rarely write code for you, but will help you write it for yourself - General Discussion - Arduino Forum
-
You already said:-
I understand what you are telling me to do,
So what exactly is the problem?