Best control structure for task of aligning motor with sensor

Thanks, Robin. I'll read that tomorrow. My head hurts & I'm off to get some shuteye....