Motion Sensor w/ Servo motor moving

Hello.

I am new to Arduino and learning. I was wondering how its possible to involve the servo motor spinning by itself to trigger the motion sensor? here is my current setup for my LCD and the motion. as it triggers the motion, the LCD displays the seconds and motion detected.

How can i add a servo motor into the statements so it can move on its own independently to trigger the motion sensor?

I am having the servo motor trigger every 20 seconds spinning it from 0 to 360 degrees by the way

Thank you Arduino community

#include <LiquidCrystal.h>
#include <Servo.h>

//Define pins
int det = 11; //red
int wait = 12; //yellow
int readd = 13; //green
int motion = 10; //sensor output to input
int detected = 0; //variable for motion detection
int pirValue;

uint8_t readPIR = 0;
uint8_t nomotionflag = 0;
const int RS = 7, EN = 6, D4 = 5, D5 = 4, D6 = 3, D7 = 2;

LiquidCrystal lcd(RS,EN,D4,D5,D6,D7); //set Uno pins that are connected to LCD, 4-bit mode

// Declare the Servo pin
int servoPin = 9;
// Create a servo object
Servo Servo1;

void setup(){
Serial.begin(9600);
lcd.begin(16,2);

//SETUP LED as OUTPUT
pinMode (det, OUTPUT);
pinMode (readd, OUTPUT);
pinMode (wait, OUTPUT);

//Setup PIR as input
pinMode(motion, INPUT);

//Initial 1 minute delay to stablize sensor
digitalWrite(det, LOW); //Low is off
digitalWrite(readd, LOW); //Low is off
digitalWrite(wait, HIGH); //High is on
delay(60000);
digitalWrite(wait, LOW); //Low is off
digitalWrite(readd, HIGH); //High is on

// We need to attach the servo to the used pin number
Servo1.attach(servoPin);

}

void loop(){
//Get value from motion sensor
pirValue = digitalRead(motion);

//See if motin detected
if (pirValue ==1){
nomotionflag = 0;
lcd.home();
lcd.print(“Motion Detected”);
lcd.setCursor(0, 2);
lcd.print(millis()/1000);
delay(500);
digitalWrite(det, HIGH);
detected = 1;
delay(3000);
}
else{
if (nomotionflag == 0){
lcd.clear();
lcd.print(“No motion”);
nomotionflag = 1;
digitalWrite(det, LOW);
}

//add delay after trigging to reset sensor
if (motion == 1){
//after trigger wait 6 seconds to re-arm
digitalWrite(det, LOW);
digitalWrite(readd, LOW);
digitalWrite(wait, HIGH);
delay(6000);
digitalWrite(readd, HIGH);
digitalWrite(wait, LOW);
motion = 0;
}
}
}