PIR sensor and DC motor

OK, well, lets see how the PIR works, disconnect everything EXCEPT the PIR and run this test program:

void setup()
{
  pinMode(2,INPUT);
  pinMode(LED_BUILTIN,OUTPUT);
}
void loop()
{
  digitalWrite(LED_BUILTIN,digitalRead(2));
}

To see how the PIR works.