I am advocating for limit switch. In which case I’d probably attach to the track such that the actuator is engaged when the door is in closed position, opening the door an inch or so would release the actuator. I’ve not done this on a garage door, just similar things and what I’ve learned in other applications would lead me to believe this would be pretty solid first attempt at a reliable solution.