Revolving Door using Arduino

Hello. Im just new here, a college student. My project is about revolving door using arduino uno, PIR sensor and a dc motor and until now i cant finish it because the of the codes. can someone help me please with the codes?
Please!

AprilKrisBorlaza:
Hello. Im just new here, a college student. My project is about revolving door using arduino uno, PIR sensor and a dc motor and until now i cant finish it because the of the codes. can someone help me please with the codes?
Please!

You have not posted the program code that you are having trouble with, nor have you told us exactly what the problem is.

And, if you were hoping someone would write your college program for you so that you could pretend it was all your own work and get a good mark then you have come to the wrong place.

…R

Here's the code.

int in1= 2 ;
int in2= 3;
int sensor = 8;

void setup ()
{
pinMode (in1, OUTPUT);
pinMode (in2, OUTPUT);
pinMode (sensor, INPUT);
pinMode (in1, OUTPUT);

digitalWrite (in1, LOW);
digitalWrite (in2, LOW);
//digitalWrite (sensor, LOW):
}

void loop()
{
digitalWrite (in1, HIGH);
digitalWrite (in2, LOW);
delay (1000);
digitalWrite (in1, LOW);
digitalWrite (in2, HIGH);
}

void loop()
{
digitalWrite (in1, HIGH);
digitalWrite (in2, LOW);
delay (1000);
digitalWrite (in1, LOW);
digitalWrite (in2, HIGH);
}

Talk this code through.
Explain it to yourself.

Please remember to use code tags when posting code

AprilKrisBorlaza:
Here's the code.

You need to tell us in detail what it actually does and what you want it to do that is different.

...R

That code does NOTHING with a PIR sensor, and uses meaningless names for the pins. College students can surely do better than THAT.