Multipurpose Vibration Detection for x Amount of Time

I’m sure you can get some help here.