OSC

Hi,

I want to control Relais via Ir sensors.
When IR is crossed the relay is ON.

The 6 IR sensor are on one board.
The 6 relays on a another one.

They are connected with Ehternet shield to transmit IR sensor state to Relays.

My main concern is about how I separate the 6 incoming value and assign them to each realy like

if irsensor1 = 1 ---> Relays1 is on
If irsensor2 = 1 ---> Relays2 is on

I don't see how to deal with with the OSC library, toreceive each incoming values !

Thanks