If you trust this link, click it to continue.
https://techmaina.com/how-to-make-automatic-door-in-minecraft/