local modemSide = "top" -- Replace "top" with the side where the modem is connected rednet.open(modemSide) while true do local senderID, message = rednet.receive() if senderID and message then local decodedMessage = textutils.unserialize(message) if decodedMessage then print(decodedMessage) end end end