issue with tilt sensor testing

Tilt sensor rp-rub-45's technical sheet suggests the following connection diagram:

The two 5VDC inputs of the sensor were connected to the Arduino +5 volts and the output to pin 12. (Ground was also connected).
An LED was connected to PIN 3.
Then the following sketch was uploaded to try it out:

/* tilt sensor / switch
RP RUB - testing
*/

// variables for front switches
int led = 3;
int tilt = 12;

void setup()
{ Serial.begin(9600); // writing something on the monitor
pinMode(led, OUTPUT);
pinMode(tilt, INPUT);

}

void loop() {

if (digitalRead(tilt)==HIGH) {
Serial.println("tilt");
digitalWrite(led, HIGH);};

delay (1000);
digitalWrite (led, LOW);
delay (500);
}

For Arduino the sensor is always in tilt mode (the led is going on and off continuously and the monitor is printing "tilt" after "tilt" after "tilt").
Can anybody catch what I am doing wrong?
Tks.

Re-posting the previous data sheet image.

I went here because your embedded image didn't work:

looking at the suggested wiring diagram high (1) is not tilt, and low (0) is tilt.

it has a pull up resistor and the tilt switch pulls to ground when the tilt is sensed.

try changing the following line:

if (digitalRead(tilt)==HIGH) {

to

if (digitalRead(tilt)==LOW) {

Yes, I need to do a little more research on how to embed an image...
Thank you, JasonK for taking the time to look it up.

You were right: I changed the program line to include LOW instead of HIGH and now the sensor is working perfectly.
Thanks again!