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)
Language of Drums Motion Path Set Drum Creativity Essence Rhythm Drum Kit Teaching Material Jazz Drum

Language of Drums Motion Path Set Drum Creativity Essence Rhythm Drum Kit Teaching Material Jazz Drum

$59.17

1.9m Wide-Format Sublimation Printer for Pillows, Garments, and Fabric Digital Printing

1.9m Wide-Format Sublimation Printer for Pillows, Garments, and Fabric Digital Printing

$600.00

Automatic Retractable Air Hose Reel - Pneumatic Shrinking Hose Drum Combo for Auto Repair (Air, Electric, Water) - National Standard

Automatic Retractable Air Hose Reel - Pneumatic Shrinking Hose Drum Combo for Auto Repair (Air, Electric, Water) - National Standard

$228.00

Marie's Paper Blending Stumps Thickened Xuan Paper Blending Stumps Marie's Student Sketch Set Blending Stumps Rubbing Cotton Painting Special Paper Blending Stumps Smudging Pens Art Supplies Xuan Paper Sketch Fixative

Marie's Paper Blending Stumps Thickened Xuan Paper Blending Stumps Marie's Student Sketch Set Blending Stumps Rubbing Cotton Painting Special Paper Blending Stumps Smudging Pens Art Supplies Xuan Paper Sketch Fixative

$5.09

Inner Mongolia Milk Skin Processing Equipment - Condensed Milk and Butter Production Line, Fully Automatic Cheese Making Machine

Inner Mongolia Milk Skin Processing Equipment - Condensed Milk and Butter Production Line, Fully Automatic Cheese Making Machine

$13,580.00

Yijiayi Plastic Surgery - Hair Follicle Analysis to Assess Growth, Prevent Hair Loss, and Plan Transplants

Yijiayi Plastic Surgery - Hair Follicle Analysis to Assess Growth, Prevent Hair Loss, and Plan Transplants

$10.00

Hell Training Rock Guitar by Shinichi Kobayashi - Electric Guitar Speed Playing Tutorial

Hell Training Rock Guitar by Shinichi Kobayashi - Electric Guitar Speed Playing Tutorial

$106.00

Mai Da Chu Commercial Food Warmer Cabinet, Large-Capacity Constant-Temperature Heating Cart for Banquets, Hotels, and Kitchens

Mai Da Chu Commercial Food Warmer Cabinet, Large-Capacity Constant-Temperature Heating Cart for Banquets, Hotels, and Kitchens

$8,165.00

Children's Activity Appliance Storage Box - Case for Braces, Underbite Correctors, Expanders, and Denture Cleaning

Children's Activity Appliance Storage Box - Case for Braces, Underbite Correctors, Expanders, and Denture Cleaning

$16.80

Stainless Steel Cable Raceway Arc-Shaped Anti-Step Floor Metal Surface Mount Decorative Invisible Wire Channel

Stainless Steel Cable Raceway Arc-Shaped Anti-Step Floor Metal Surface Mount Decorative Invisible Wire Channel

$2.50

Electric Watercolor Spray Pen Children Hand-painted Color Pa

Electric Watercolor Spray Pen Children Hand-painted Color Pa

$46.55

408 Fast-Drying Glue - Strong Low-Whitening Instant Adhesive for Metal and Plastic, Heat Resistant

408 Fast-Drying Glue - Strong Low-Whitening Instant Adhesive for Metal and Plastic, Heat Resistant

$53.12

UE5.1-5.7 Ancient Sci-Fi Gate Model Instrument Consultation

UE5.1-5.7 Ancient Sci-Fi Gate Model Instrument Consultation

$2.00

Biliansheng Hair Transplant - Non-Shave Female Hairline Restoration & Density Enhancement

Biliansheng Hair Transplant - Non-Shave Female Hairline Restoration & Density Enhancement

$19,999.00

Water Brush Pen Set Large Capacity Beginner Gouache Solid Watercolor Paint Brush Tools Line Drawing Art Student

Water Brush Pen Set Large Capacity Beginner Gouache Solid Watercolor Paint Brush Tools Line Drawing Art Student

$32.00

Beginner Watercolor Painting Line Art Coloring Book, Hua Meng Lv Ren by Stan, Fine Texture, 2-Pack Free Shipping

Beginner Watercolor Painting Line Art Coloring Book, Hua Meng Lv Ren by Stan, Fine Texture, 2-Pack Free Shipping

$10.60

New Wanli Tire 265/45R21 SU306+ - Compatible with AITO M7, BYD Tang, Range Rover, Li Auto, and NIO

New Wanli Tire 265/45R21 SU306+ - Compatible with AITO M7, BYD Tang, Range Rover, Li Auto, and NIO

$528.00

Suzhou Factory Wholesale Chain Store Logo - RGB Illuminated Letters, Acrylic Neon Signs for Window and Counter Display

Suzhou Factory Wholesale Chain Store Logo - RGB Illuminated Letters, Acrylic Neon Signs for Window and Counter Display

$1,911.00

RoHS 1.0 Environmental Tester for Alloy Analysis and Heavy Metal Detection in Plastic Toys

RoHS 1.0 Environmental Tester for Alloy Analysis and Heavy Metal Detection in Plastic Toys

$15.30

Mont Marte Long-Handle Bristle Brush – Professional Art Brush for Acrylics, Oil Painting, and Flat Wash Techniques

Mont Marte Long-Handle Bristle Brush – Professional Art Brush for Acrylics, Oil Painting, and Flat Wash Techniques

$37,500.00

Portable Plastic Backpack Fertilizer Bucket for Manual Fruit Picking, Seed Feeding, and PPC Fertilization

Portable Plastic Backpack Fertilizer Bucket for Manual Fruit Picking, Seed Feeding, and PPC Fertilization

$9.50

Chinese-Style Hand-Drawn Plant Line Art Coloring Book on 100% Cotton Watercolor Paper

Chinese-Style Hand-Drawn Plant Line Art Coloring Book on 100% Cotton Watercolor Paper

$15.80

Eagle Brand 99021 Industrial Scouring Pads, Cleaning Cloths, and Polishing Pads Supply

Eagle Brand 99021 Industrial Scouring Pads, Cleaning Cloths, and Polishing Pads Supply

$666.00

Pad Printing Machine Parts - Zhongke 4-Inch Blade Clamp, Blade Holder, and Doctor Blade Frame (In Stock)

Pad Printing Machine Parts - Zhongke 4-Inch Blade Clamp, Blade Holder, and Doctor Blade Frame (In Stock)

$4.50

Pneumatic Throttle Valve Quick Connect Fitting SL4-01/4-02/4-03 Air Pressure Regulator Flow Control Valve

Pneumatic Throttle Valve Quick Connect Fitting SL4-01/4-02/4-03 Air Pressure Regulator Flow Control Valve

$8.60

Pad Printing Silicone Rubber Heads Electric Long Round Square Durable Customizable 30-Year Established Store

Pad Printing Silicone Rubber Heads Electric Long Round Square Durable Customizable 30-Year Established Store

$3.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

Candy Naoko Gujima Mr. Saxophone City Pop Sheet Music with Accompaniment Demo

Candy Naoko Gujima Mr. Saxophone City Pop Sheet Music with Accompaniment Demo

$37.00

Multi-Color Detachable Water Bucket Stand - Office Purified Water Dispenser Holder (Inverted)

Multi-Color Detachable Water Bucket Stand - Office Purified Water Dispenser Holder (Inverted)

$60.95

Oil-Based Original Strong Fast-Drying Adhesive for Metal, Plastic, Rubber, Ceramics, and Wood, Multi-Purpose Transparent Glue (Not 502)

Oil-Based Original Strong Fast-Drying Adhesive for Metal, Plastic, Rubber, Ceramics, and Wood, Multi-Purpose Transparent Glue (Not 502)

$21.60