i guess you have connected to cayenne with this setup.
you can use this library GitHub - miguelbalboa/rfid: Arduino RFID Library for MFRC522 and similer project RFID based attendance monitoring system
do you have any link to this?
this can be controlled using a slider from cayenne dashboard.