Problem with the PIR sensor DSN-FIR800

Hi,
I am trying to use the PIR-sensor to detect a motion with the Arduino, the sensor has 3pins: Vcc,Out,GND all connected to the Arduino as an input and the motor ist also conected to the arduino as an output.
If the sensor detects a motion the motor(DC motor 4,5Volts 25mA) schould go on if not the motor schould go off.
Please help me on this.
thank you.

And what are the specifications for "Vcc" and "out"?

Vcc is 5V the gnd is connected to gnd on the arduino schould I connect the out pin to the motor or on the arduino?.
or what do you mean with specifications for vcc and out??

EDIT:

I suggest that you connect the output pin of the PIR to Arduino Digital Input (ex. Pin2), then attach your DC motor (through a transistor or motor driver circuit) to any digital Pin on Arduino (ex. Pin 8), then write your code, something like this:

void loop () {
if (digitalRead(2)==HIGH) {
digitalWrite(8,HIGH);
}
else {
digitalWrite(8,LOW);
}
}

or you can make it shorter without using if else statement:

void loop(){
digitalWrite(8,digitalRead(2));
}

With that, you can turn on or off the motor attached to your arduino.
you have to use transistors or motor driver circuits with external power supply when using motors

iamwin:
I suggest that you connect the output pin of the PIR to Arduino Digital Input (ex. Pin2), then attach your DC motor to any digital Pin on Arduino (ex. Pin 8), then write your code, something like this:

void loop () {
if (digitalRead(2)==HIGH) {
digitalWrite(8,HIGH);
}
else {
digitalWrite(8,LOW);
}
}

or you can make it shorter without using if else statement:

void loop(){
digitalWrite(8,digitalRead(2));
}

With that, you can turn on or off the motor attached to your arduino. note that you can do this for small dc motors, but in case you have larger ones, you have to use motor drivers with external power supply.

Never attach a DC motor directly to your Arduino.
Even the tiny vibra motors in mobile phones can draw more current than an output pin can safely source or sink.

MAB2014:
If the sensor detects a motion the motor(DC motor 4,5Volts 25mA) schould go on if not the motor schould go off.

So essentially, you're using the Arduino as a (very small) transistor. Why don't you just use a transistor?

AWOL:

iamwin:
I suggest that you connect the output pin of the PIR to Arduino Digital Input (ex. Pin2), then attach your DC motor to any digital Pin on Arduino (ex. Pin 8), then write your code, something like this:

void loop () {
if (digitalRead(2)==HIGH) {
digitalWrite(8,HIGH);
}
else {
digitalWrite(8,LOW);
}
}

or you can make it shorter without using if else statement:

void loop(){
digitalWrite(8,digitalRead(2));
}

With that, you can turn on or off the motor attached to your arduino. note that you can do this for small dc motors, but in case you have larger ones, you have to use motor drivers with external power supply.

Never attach a DC motor directly to your Arduino.
Even the tiny vibra motors in mobile phones can draw more current than an output pin can safely source or sink.

Oops! I almost forgot, thanks for correcting. A transistor will be needed when connecting dc motors. Or use motor drivers.