악세사리 -S1L9
작동 전압	5V
int Led = 13; // define the LED Pinint shock = 3 // define the sensor Pin int val; // define a numeric variable val void setup () {pinMode (Led, OUTPUT); // LED pin as output  pinMode (shock, INPUT); // input from KY-002 sensor} void loop () {val = digitalRead (shock); // read the value from KY-002if (val == HIGH ) {// when sensor detects shock, LED flashes   digitalWrite(Led, LOW);} else { digitalWrite (Led, HIGH);}}
악세사리 색상 이미지-S1L14
악세사리 -S1L15
악세사리 -S1L11