behind_the_post_sensor possible sensors SW-18020P which comes in a decent module with analog pin. SW420 is another vibration sensor Both have been bench-tested with ESP8266 Wemos D1 mini Pro boards. KY-031 knock-sensor was discounted as not sensitive enough to vibrations.