Control led brightness using ir remote volume buttons

So post your code. Read the forum guidelines to see how to properly post code.
Use the IDE autoformat tool (ctrl-t or Tools, Auto format) before posting code in code tags.

Tell us what the code does and how that is different from what you want.

Post a schematic of your wiring. How to make a schematic that you can post.

You must provide the requested information. If not we can not help you. I do not have time to guess at what you have or indulge in a game of twenty questions.