IR remote, infrared sensor and control

I update.

The code in the photo works correctly, and the values ​​it receives are fine. The problem starts when I want to add other components, for example a servo motor.

I upload the photo of the code that fails me, when I add the servo motor.