Combining two sketches

Please post your code inline with the </> code tags.
Read the sticky topic How to Post in the forum.

It makes it infinitely easier for people to help...
for example, I haven’t even looked at your sketch until I get home to a PC