Motion-following device not working - sketch related

Macadoo:
May I upload the sketch into a reply right here?

Yes, you may. :slight_smile:

Hit the "Reply" button, not "Quick Reply", then paste the code into the reply.
After doing that, select the code and then press the </> button to enclose the code within code tags.

Alternatively, paste the code, then type [code] immediately before it, then [/code] immediately after it.

Before posting the code, press Ctrl-T or click on ">Tools >Auto format" in the IDE to format it correctly.