MC-38 magnet sensor project

Doid anyone here make a project with the MC-38 Magnet sensor?

if you have, what kind of code can i use to turn the sensor off, for example with an RFID or webserver. its to use a security alarm so fot example i scan the code and the sensor should go off. but whatever i try nothing works. is it because the sensor is to simple or is it me beeing to much of a beginner?

the code i used here is with a servo motor, how would you guys/girls implement the sensor code in here.

#include <SPI.h>
#include <MFRC522.h>
#include <Servo.h>

#define SS_PIN 10
#define RST_PIN 9
#define LED_G 5 //define green LED pin
#define LED_R 4 //define yellow LED
#define BUZZER 2 //buzzer pin
MFRC522 mfrc522(SS_PIN, RST_PIN); // Create MFRC522 instance.
Servo myServo; //define servo name

void setup()
{
Serial.begin(9600); // Initiate a serial communication
SPI.begin(); // Initiate SPI bus
mfrc522.PCD_Init(); // Initiate MFRC522
myServo.attach(3); //servo pin
myServo.write(0); //servo start position
pinMode(LED_G, OUTPUT);
pinMode(LED_R, OUTPUT);
pinMode(BUZZER, OUTPUT);
noTone(BUZZER);
Serial.println("Put your card to the reader...");
Serial.println();

}
void loop()
{
// Look for new cards
if ( ! mfrc522.PICC_IsNewCardPresent())
{
return;
}
// Select one of the cards
if ( ! mfrc522.PICC_ReadCardSerial())
{
return;
}
//Show UID on serial monitor
Serial.print("UID tag :");
String content= "";
byte letter;
for (byte i = 0; i < mfrc522.uid.size; i++)
{
Serial.print(mfrc522.uid.uidByte < 0x10 ? " 0" : " ");
_ Serial.print(mfrc522.uid.uidByte*, HEX);_
_ content.concat(String(mfrc522.uid.uidByte < 0x10 ? " 0" : " "));
content.concat(String(mfrc522.uid.uidByte, HEX));
}
Serial.println();
Serial.print("Message : ");
content.toUpperCase();
if (content.substring(1) == "F5 68 33 1C") //change here the UID of the card/cards that you want to give access*

* {
Serial.println("Authorized access");
Serial.println();
delay(500);_

digitalWrite(LED_G, HIGH);
_ tone(BUZZER, 500);
delay(300);
noTone(BUZZER);
myServo.write(180);
delay(5000);
myServo.write(0);_

digitalWrite(LED_G, LOW);
_ }*_

else {
* Serial.println(" Access denied");*
* digitalWrite(LED_R, HIGH);
_ tone(BUZZER, 300);
delay(1000);_

digitalWrite(LED_R, LOW);
_ noTone(BUZZER);
}
}*_