I did something like this recently in 1.4.7 (OCS 0.1.4), with a proximity sensor card. I wanted it to go off when players were near, but not when other entities came by (mobs, golems, etc). Here's what worked for me (not the full program):
local radius = 10
local player_nearby = false
local...