code check for me please

thanks for looking at the code. i tried implementing it into my code to no avail.

im taking a good look at the arduino tutorials while waiting for your response.

thanks again.