For anyone building a compact observatory where it's critical that the mount is parked before closing the roof, I think the following might help you:
AtPark Sensor
I'm going to get one for my system as my version 2 of the remote observatory is getting more compact, so it's now even more critical that the new roof doesn't slam into the scope... lol