DC motor don't come back in same position

A diagram of your device would certainly help. Are the motors directly moving the gate? How? Are the motors on the gate and moving as well? Is there any vibration of the hall sensor?

Paul