Programming not working / serial interfacing not working

The basics is actually to learn how to post code on the forum :wink:

OP, please read the sticky "how to use the forum", specifically the part about posting code.

I also suspect that your second for loop is not doing what you think it should be doing.