1. Read the wiki!!!!
ok i'll explain you.
its simple, you build a room only with solid blocks (no doors) then place a oxygen sealer inside, use sealed pipes and wires.
airlock is like a door, place the blocks, like you do with obsidian when you want to create a nether portal, and power one of the blocks with redstone to close the door.
hope that helps