name RFID Door
@inputs A B C D State 
@outputs Door
@persist [Code1]:array [Reader1]:vector4
@trigger 
interval(100)
if(first() | duped() | dupefinished()) {
    Code1[1, vector4]=vec4(1,3,3,7)
Code1[2, vector4]=vec4(7,3,3,1)
}

Reader1=vec4(A,B,C,D)
for(I = 1,2) {
    interval(100)
if(Reader1 == Code1[I, vector4] & State > 0) {
    Door = 48
    }
else{Door = 96}
}
