Creating serial code

Have you gone through the community post discussed previously? It should help you solve your issue: