ok
This is probably very simple, however i'm just missing something.
I have 5 motions sensors. When one of them is tripped, i want to do something different, depending on the sensor... so i need to identify which one was tripped.
I figure that the component address is the way to do that, but i am not getting an address from the signal...
local component = require("component")
local sensor = component.motion_sensor
local event = require("event")
print("Detecting...")
while true do
local _,_,x,y,z,name=event.pull("motion")
print("Detected:",addre