i hope some of you can help me.
im working in a light switch in my room using a RC522 rfid reader.
i want to scan my rfid tag to turn on/off my lights.
but right now it doesn’t really work.
i want to combine 2 script.
- unlock door with a rc522.
- a script to use a push button as a toggle switch.
i want to use the relay signal from the unlock door switch as the pushbutton signal to toggle the power on/off.
i included my script i hope someone can help me out on this.
ps my english is not the best since im form holland.
light_switch.ino (21.2 KB)