Connecting two different Arduino codes

Thank You i would do just that