Motor and sensor

Swaggydogy:
please just help me to finish this programm

I made this programme by taking example of you're code...

I will try to help but you must post a complete program. And if your code won't compile then please also post the error message.

...R