Personally, I think trying to link it to the ramp switch or motion sensor is not the best idea. The ball will be long past the ramp by the time the gate opens and you'll have a million false positives on a motion sensor. I'm thinking ideally you'd want it to open when you want to hit the ramp - bone busting, jackpot, etc. Obviously, that seems to be a bit of a code integration issue, unless you could tie it to the insert lights somehow (then there's attract mode issues?). Otherwise even something like open after starting a game and closing at game over ("The park is closed!") would be cool.