RFID-coded and magnetically coded safety sensors