rid = 1 input = "front" output = "back" local state = false local modem = peripheral.find("modem") modem.open(188) local transmit = function() modem.transmit(188,188,{id = rid, state = state}) end while true do local evt = {os.pullEvent()} if evt[1] == "redstone" then state = rs.getInput(input) transmit() elseif evt[1] == "modem_message" then local msg = evt[5] if type(msg) == "table" then if type(msg.id) == "number" and type(msg.state) == "boolean" then if msg.id == rid then rs.setOutput(output,msg.state) end end end end end --pastebin get sLkBMb4e wr