Motor and sensor

Swaggydogy:
And about the sensor, well in the project im on... I use an IR sensor but in tinkercad with the circuit only the PIR sensor work similar to an regular IR sensor...

You need to do real tests with a real sensor. I would not trust simulations for something like you are doing. Then post the datasheet for the specific sensor you are using.

Also about the red pillar and the distance, it's doesn't matter, all you need is that it could detect.

That is plain silly (and I am trying to be polite). Some sensors only detect at distances of a few millimetres. And some detectors can only sense large objects.

About the speed of the motor.

I want to make a regular speed witch is not really fast to give the time for the sensor to detect and not to slow to rotate not too slow to the point.

Don't waffle. Tell us the speed in revolutions per minute. Computer programming needs numbers.

...R