jacobcc05

day/night detector receiver

Apr 28th, 2013
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. while true do
  2. senderID, message = rednet.receive()
  3. if message == "day" then
  4. print("Day time")
  5. elseif message == "night" then
  6. print("Night time -_-")
  7. end
  8. end
Advertisement
Add Comment
Please, Sign In to add comment