Simulation of the project

Simulation

Now, click to stat simulation button to test the circuit and code.

So, now rotate the knob of potentiometer and you will see the change in position of servo motor.