Motor and sensor

Compare line 25 with line 13 and then compare both of them with what I said about that code in Reply #17

...R