By changing the pins to inputs after the Serial out commmand the circuit works very well.
For this application there is not a problem with timming the two signals, so for this time I do not need the monitor, but it is an idea that I may use in the future.

Thanks.