He have a heart problems I give the medication like always and he start to have breath problems like agitated
You should go to your veterinarian to do a general scan of your dog.
In senior dogs it is very common to have affections of some of the systems. As he has a heart problems, it is possible that he needs to adjust the teraphy.
In any case, your veterinarian will be able to better assess your dog's condition through a review and, if needed, through the necessary diagnostic tests.
All the best.