Sending a Hello message using arduino

Albert94:
I would be very glad if you could help me fix that part

Sorry but I can't help to fix something that doesn't exist. The "code" you've posted doesn't do anything like what you say you want. From what I can see it sends a message 5 times, flashing an LED once each time it sends the message. You either have to put a bit more effort to write something that's at least closer to your requirements or ask some more specific questions about things you don't understand.

Round here we help with fixing programs you're trying to write. We don't just write them for you.

Albert94:
I am actually using two different pcs, one of the pcs is connected to an Arduino nano board and the nano board is connected to the TX circuit. The other pc is connected to an Arduino uno board and the uno board is connected to the RX circuit.
I'm using Arduino software on both pcs.

That doesn't make any sense. The RX circuit or the TX circuit of what? It sounds like you have one Arduino sending something to a PC and a completely different PC sending something to a different Arduino. And you've only shown us one Arduino sketch. What is the other one doing?

Sorry but trying to write programs where the specification is "I was thinking it might work out that way but it might not" is hopeless. If you can't even decide what a program should do then you have no hope of being able to write a program to do it.

I suggest for now you spend some time testing your existing program. Work out exactly what it is doing and understand how it does it. Then think of some small change you might make that would get it nearer to your end goal. We can help with that and perhaps you can slowly get to where you want to be.

Steve