fix for RF Event predicate handler
added pin switch device for using the arduino digital pins with relays