can arduino serial.read() values??

First thing to do is define the requirements of the resulting program. Then, you pick the bits and pieces from each of the original programs that implement those requirements.

im still new in this arduino coding, so can u show me how to solve it? i really do appreciate it...