ITEM NAME:Mini Tilt Vibration Sensor Switch Sensor Module for ArduinoS Hn Features: Color Black Material PCB Features Working voltage: 3.3V~5V; digital switch output (0 & 1); High sensitivity Application Tilt sensor Tilt switch module and a digital interface, built-in 13 LED build A simple circuit to produce tilt warning lamp 13 comes with digital interfaces of the LED, The tilt switch sensor interface to access digital 3, When the tilt open Off sensor senses a key signal, LED lights, otherwise off. Routines source code: Int Led = 13 ;// define LED Interface Int buttonpin = 3; // define the tilt switch sensor interfaces Int val ;// define numeric variables val Void setup() Void loop () { Val = digitalRead(buttonpin) ;// digital interface will be assigned a value of 3 to read val If(val == HIGH) // When the tilt sensor detects a signal when the switch, LED flashes { DigitalWrite(Led, HIGH);.Tilt switch module and a digital interface, built-in 13 LED build. The tilt switch sensor interface to access digital 3. PinMode(buttonpin, INPUT) ;// define the output interface tilt switch sensor. Application Tilt sensor.