I need to create a switching circuit using a vibration sensor and adruino. The idea is vibration sensor should turn on an LED and LED should be in ON state for about two minutes before it turns off. And again it should turn on and stay for 2 minutes when the sensor vibrate again. The process continues as the sensor vibrates.
Use CTRL T to format your code.
Attach your ‘complete’ sketch between code tags, use the </> icon in the posting menu. [code]Paste your sketch here[/code]