Skip to main content
Home / Computer Hardware, Monitors & Peripherals / Keyes Analog Piezoelectric Ceramic Vibration Sensor Module Shock Detection for Arduino MCU DIY

Attributes

Brand -
Category Electronic Components / Maker DIY / Computer Hardware, Monitors & Peripherals
Origin -
Brand Keyes
Model Number KY-031 Compatible
Output Type Analog Voltage
Operating Voltage 3.3V - 5V DC
Interface Type 3-Pin PH2.54 Header
PCB Dimensions 32mm x 15mm x 5mm
Weight 4.5 grams
Sensor Element Piezoelectric Ceramic
Compatibility Arduino, ESP32, STM32, Raspberry Pi
Package Content 1x Vibration Sensor Module

5 reviews

A

Anonymous

Mar 23, 2026

Rating: 5/5

Solid build quality

The PCB looks professional and the piezo element is securely mounted. I have tested it on both 3.3V and 5V systems without any issues. Shipping was fast and the packaging protected the module well.

A

Anonymous

Mar 20, 2026

Rating: 4/5

Great value for money

Does what it says on the tin. I bought three of these for a home security prototype. The analog signal is smooth and easy to filter. Would recommend buying a few extras if you are prototyping.

A

Anonymous

Mar 06, 2026

Rating: 4/5

Good sensitivity, needs calibration

The module is well-built and the pins are sturdy. It is quite sensitive, which is good, but you will need to calibrate the baseline in your software to avoid false positives from ambient noise. Overall satisfied with the purchase.

A

Anonymous

Mar 01, 2026

Rating: 5/5

Easy to wire and use

I am new to electronics and this was very beginner-friendly. The pins are labeled clearly. I used it to detect when my washing machine stops vibrating. Works flawlessly with 5V logic.

A

Anonymous

Feb 01, 2026

Rating: 5/5

Perfect for my alarm project

This sensor works exactly as described. I connected it to my Arduino Uno and was able to read vibration values within minutes. The analog output makes it easy to set sensitivity thresholds in the code. Great value for DIY electronics.

5 FAQ

Q: Do you provide sample code for Arduino?

A: Yes, please visit the product wiki link in the description. We provide basic example sketches to help you read the analog values quickly.

Q: How long are the header pins?

A: The module comes with standard 0.1-inch pitch header pins suitable for breadboards. They are approximately 10mm in length.

Q: Is there a digital output pin available on this version?

A: This specific model provides an analog output only. If you require a digital trigger, you will need to set a threshold in your microcontroller code based on the analog reading.

Q: What voltage does this module require to operate?

A: This module operates safely between 3.3V and 5V DC. It is compatible with most standard microcontrollers like Arduino and ESP8266.

Q: Can this detect knocks on a door?

A: Yes, the piezoelectric element is sensitive to shocks and vibrations such as knocks. However, sensitivity depends on how firmly the module is mounted to the surface.

Explore your interests

View More
All Categories
Best Seller (30)
New List (30)
Feileniao 'Competing Beauties' Traditional Chinese Painting Gift Set - Gongbi Line Drawing DIY Kit for Beginners & New Year Gifts

Feileniao 'Competing Beauties' Traditional Chinese Painting Gift Set - Gongbi Line Drawing DIY Kit for Beginners & New Year Gifts

$41.60

9A Natural Ice-Grade Aquamarine Loose Beads - Handmade DIY Bracelets and Necklaces for Women, Devil Blue Crystal Single Bead

9A Natural Ice-Grade Aquamarine Loose Beads - Handmade DIY Bracelets and Necklaces for Women, Devil Blue Crystal Single Bead

$23.10

High-Precision Digital Tire Pressure Gauge with Large Display for Car Inflation

High-Precision Digital Tire Pressure Gauge with Large Display for Car Inflation

$49.50

Premium Factory Price Low-Temp 3D Printing Pen (2-Pack) - Compatible with PCL Filament

Premium Factory Price Low-Temp 3D Printing Pen (2-Pack) - Compatible with PCL Filament

$67.91

Music Theory Book Jazz Theory Introduction Volume 1 Jazz Teaching Theoretical Knowledge Basic Textbook Tutorial HD Electronic Version

Music Theory Book Jazz Theory Introduction Volume 1 Jazz Teaching Theoretical Knowledge Basic Textbook Tutorial HD Electronic Version

$5.00

Extra-Large Transparent Plastic Storage Box with Lid, Home Organizer for Clothes and Household Items

Extra-Large Transparent Plastic Storage Box with Lid, Home Organizer for Clothes and Household Items

$4.80

Baijiali Artistic Eyebrow Hair Transplant: Bilateral Filling for Sparse Areas, Dense and Natural-Looking Results

Baijiali Artistic Eyebrow Hair Transplant: Bilateral Filling for Sparse Areas, Dense and Natural-Looking Results

$7,800.00

Plastic U-Shaped Trough Mold for Yam Cultivation, Directional Shallow Growth Slots (100 Pieces, Free Shipping)

Plastic U-Shaped Trough Mold for Yam Cultivation, Directional Shallow Growth Slots (100 Pieces, Free Shipping)

$31.40

Maikeku Commercial Slow Juicer, Large Pulp-Separating Juice Extractor with High Power, Wide Mouth, Fully Automatic for Street Vending

Maikeku Commercial Slow Juicer, Large Pulp-Separating Juice Extractor with High Power, Wide Mouth, Fully Automatic for Street Vending

$7,456.32

Continental CSC5 Tire 245/50R18 104V MO-V for Mercedes-Benz Viano, Vito, V260

Continental CSC5 Tire 245/50R18 104V MO-V for Mercedes-Benz Viano, Vito, V260

$882.00

English Vocabulary Flashcards for Classroom Teaching - Categories Include Weather, Days, Months, Clothing, Home, Seasons, Fruits, Food, and Professions

English Vocabulary Flashcards for Classroom Teaching - Categories Include Weather, Days, Months, Clothing, Home, Seasons, Fruits, Food, and Professions

$8.42

Cabinet Storage Box, Foldable Rattan-Style Basket for Countertop Snacks, Clothes, and Toys

Cabinet Storage Box, Foldable Rattan-Style Basket for Countertop Snacks, Clothes, and Toys

$19.90

Custom PVC Sign Letters, Advertising Signs, Branding Wall Characters, Snowflake Board, Acrylic Crystal Letters for Background Walls

Custom PVC Sign Letters, Advertising Signs, Branding Wall Characters, Snowflake Board, Acrylic Crystal Letters for Background Walls

$5.00

Specialized Vegetable Growing Box - Foam Balcony Planter, Rectangular Plastic Pot for Home Gardening

Specialized Vegetable Growing Box - Foam Balcony Planter, Rectangular Plastic Pot for Home Gardening

$41.70

Fully Protected Smart Battery Tester - Performance Detector for Electric Vehicle and Car Batteries

Fully Protected Smart Battery Tester - Performance Detector for Electric Vehicle and Car Batteries

$286.00

Large-Diameter Steel Corrugated Drainage Pipe for Bridge Culverts

Large-Diameter Steel Corrugated Drainage Pipe for Bridge Culverts

$61.11

Water Curtain Paint Booth - 3-Meter Spray Station with Water Circulation for Paint Mist Purification, Eco-Friendly Dust Removal, 1-Meter Small Water Curtain Cabinet

Water Curtain Paint Booth - 3-Meter Spray Station with Water Circulation for Paint Mist Purification, Eco-Friendly Dust Removal, 1-Meter Small Water Curtain Cabinet

$1,980.00

Portable Cleaning and Storage Box for Elderly Dentures, Compact Case for Full-Set False Teeth Soaking and Storage

Portable Cleaning and Storage Box for Elderly Dentures, Compact Case for Full-Set False Teeth Soaking and Storage

$32.22

RC Model A07 PNP FPV Analog/Digital Racing Drone 7-Inch Aerial Photography Quadcopter Frame

RC Model A07 PNP FPV Analog/Digital Racing Drone 7-Inch Aerial Photography Quadcopter Frame

$1,643.00

ACCSOON SeeMo Monitor Converter for iPhone and iPad, Real-Time Monitoring and Live Streaming

ACCSOON SeeMo Monitor Converter for iPhone and iPad, Real-Time Monitoring and Live Streaming

$1,059.00

Solenoid Valve Initial Inspection Test Bench / Solenoid Valve Leakage Test Bench / Solenoid Valve Airtightness Test Bench

Solenoid Valve Initial Inspection Test Bench / Solenoid Valve Leakage Test Bench / Solenoid Valve Airtightness Test Bench

$7,482.00

Factory Direct Hardware Screw and Parts Automatic Weighing and Packaging Machine, Vertical Weighing and Packing Equipment

Factory Direct Hardware Screw and Parts Automatic Weighing and Packaging Machine, Vertical Weighing and Packing Equipment

$36,860.00

Commercial Heated Beverage Cabinet, Small Countertop Display Warmer with Constant Temperature for Supermarkets

Commercial Heated Beverage Cabinet, Small Countertop Display Warmer with Constant Temperature for Supermarkets

$1,099.00

Manufacturer Supply Standard Dual-Color Film Copy Paper Ink Water-Based Ink Gravure Printing Machine

Manufacturer Supply Standard Dual-Color Film Copy Paper Ink Water-Based Ink Gravure Printing Machine

$17,500.00

Gray Surface Pen for Sketching and Quick Drawing - Art Highlight Sketch Paper Blending Stump and Sponge Eraser Tool Set for Still Life, Geometry, and Portraits, Designed for Art Students and Exam Candidates, Complete Beginner Kit

Gray Surface Pen for Sketching and Quick Drawing - Art Highlight Sketch Paper Blending Stump and Sponge Eraser Tool Set for Still Life, Geometry, and Portraits, Designed for Art Students and Exam Candidates, Complete Beginner Kit

$6.80

Extra-Large Denture Storage Box for Seniors, Food-Grade Portable Cleaning and Soaking Container for Full Dentures

Extra-Large Denture Storage Box for Seniors, Food-Grade Portable Cleaning and Soaking Container for Full Dentures

$29.90

[Sheet Music Collection for Teachers] Continuously Updated – HD, No Watermark, Includes Tutorial Videos

[Sheet Music Collection for Teachers] Continuously Updated – HD, No Watermark, Includes Tutorial Videos

$49.90

Orthodontic Retainer Case for Invisible Braces, Portable Storage and Cleaning Box for Teeth Aligners and Dentures

Orthodontic Retainer Case for Invisible Braces, Portable Storage and Cleaning Box for Teeth Aligners and Dentures

$23.10

Portable Retainer Case for Braces, Orthodontic Clear Aligner Storage Box with Chewie and Removal Tool

Portable Retainer Case for Braces, Orthodontic Clear Aligner Storage Box with Chewie and Removal Tool

$3.98

Freestanding Multi-Tier Toilet Storage Rack for Bathroom, Laundry, and Balcony Organization

Freestanding Multi-Tier Toilet Storage Rack for Bathroom, Laundry, and Balcony Organization

$174.00