local radar, currentSecond, lastInput = peripheral.wrap('radar_0'), 0, 0 function initiate() while true do loop() currentSecond = currentSecond + 1 sleep(1) end end function loop() -- Every 2 Seconds to reduce amount of sensor calls and potentially limit lag if ( currentSecond % 2 == 0 ) then -- Probe Sensors local isInside for index, player in ipairs(radar.getPlayers()) do if ( player.distance < 5.5 ) then isInside = true break end end term.setCursorBlink(true) rs.setOutput('bottom', not isInside) term.setCursorBlink(false) end end initiate()