The code is simple and should run with no problems.

If you insist on simulation, I do not know much. I hear that Proteus is the Best, but still have a few flaws.

Did you try the code on real circuit?

Ioannis