(Solved) ir remote relay control

but the result is nor stable

You'll need to explain what this means. We can't see what you are observing as unstable.