
Hello!
I agree with Billy, that it would easier and more efficent to
buy a timer that takes an input from a sensor.
Otherwise, if you build your own, it may be described like this;
The sensor feeds into an Op Amp that acts like a comparator,
looking for the voltage level to change when the sensor is
activated. the logic level comparator activates a transistor,
which, in turn, activates a 555 timer, acting like a one-shot
flip-flop.(timer) The timer activates a control transistor that
grounds the control side of the relay; the Normally open
contacts of the relay are used to power your motor, for the
time generated by the 555 timer.
I would probably use a pre-made timer with your sensor.
Good luck!!
