Controlling Servo Motor with Arduino and PIR Sensor

Do not post images of code. Read the forum guidelines to see how to post code.
Use the IDE autoformat tool (ctrl-t or Tools, Auto Format) to indent the code for readability before posting code.

You will get better and faster help if you read and follow the forum guidelines linked above.

You may get away with powering a small unloaded servo from the Uno 5V, but servos should have an external power supply capable of supplying the servo's stall current. See the servo data sheet for the stall current specification.