Sweep Servo Motor With Arduino Nano and PIr?

but this is not show how to use PIR and battery 9V ?

Of course not, because no one in their right mind would try to power a servo using a smoke detector battery.