For your design an easy way pf programming is to use block programming, like mBlock .
Basically it takes a GUI representation of your block setup, your design, and converts it
to Arduino code, and programs the board. A Nano board (~3$) would work fine for this :
View attachment 144547
View attachment 144548
The above a first pass at the design, you drag and drop blocks into right hand window,
set any variables needed, and create the control signals on pins.
Use off the shelf relay board, some are isolated, like :
Buy the best and latest relay arduino on banggood.com offer the quality relay arduino on sale with worldwide free shipping. | Shopping
To control solenoids, motors......
If you wanted a wireless networked solution , use Tuniot instead of mBlock, and an ESP8266 or ESP32
board.
Here is what it takes to setup a basic network interface, and you would add the block code,
similar to what I show above, to it to control the door.
View attachment 144549
Lots of fun, easy to learn, many videos on youtube.
Note to use mBlock (its free) your install Arduino IDE (also free) as mBlock uses the Arduino
IDE which has a board programmer mBlock uses to upload the code to the board.
Regards, Dana.