Finished code:
Startup code on computer #28
while true do
rednet.open("back")
Rednet1, Rednet2, Rednet3 = os.pullEvent("rednet_message")
print(Rednet1)
print(Rednet2)
print(Rednet3)
if Rednet3 == "open" then
redstone.setOutput("left", false
elseif Rednet3 == "close" then
redstone.setOoutput("left", true)
else
end
end
open_trap_door code on computer #21
rednet.open("left")
rednet.send(28, "open")
close_trap_door code on computer #21
rednet.open("left")
rednet.send(28, "close")