DC motor don't come back in same position

Is there some reason you have rejected the idea of sensors for Opened or Closed that were suggested in Replies #4 and #8?

That seems to me a much simpler and more reliable solution.

...R