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

All Categories
Best Seller (30)
New List (30)
Sink Drain Rack Corner Hanging Basket - Kitchen Sponge and Cloth Organizer, Multi-Function Home Storage Solution

Sink Drain Rack Corner Hanging Basket - Kitchen Sponge and Cloth Organizer, Multi-Function Home Storage Solution

$13.73

Magnetic Refrigerator Side Storage Rack - No-Drill Wall Organizer for Spices and Utensils

Magnetic Refrigerator Side Storage Rack - No-Drill Wall Organizer for Spices and Utensils

$9.10

Multi-Function Car Tire Stone Removal Hook Tool for Picking and Digging Out Debris

Multi-Function Car Tire Stone Removal Hook Tool for Picking and Digging Out Debris

$7.35

Suction Cup Sink Strainer - Disposable Kitchen Drain Filter for Food Scraps and Waste

Suction Cup Sink Strainer - Disposable Kitchen Drain Filter for Food Scraps and Waste

$14.30

Kimberly-Clark Wiper Paper, Industrial Cleaning Wipes for Oil and Grease, Factory & Laboratory Use

Kimberly-Clark Wiper Paper, Industrial Cleaning Wipes for Oil and Grease, Factory & Laboratory Use

$963.52

Loose Gold Rutilated Quartz Beads, Donghai Agate, Chalcedony, Jade, Cat's Eye, Titanium Crystal, Aquamarine, White and Yellow Crystal Single Beads for Bracelets

Loose Gold Rutilated Quartz Beads, Donghai Agate, Chalcedony, Jade, Cat's Eye, Titanium Crystal, Aquamarine, White and Yellow Crystal Single Beads for Bracelets

$8.42

Faucet Drain Mat, Non-Slip Countertop Pad for Kitchen and Bathroom, Splash-Proof Sink Organizer, Thickened Mold-Resistant Silicone Mat

Faucet Drain Mat, Non-Slip Countertop Pad for Kitchen and Bathroom, Splash-Proof Sink Organizer, Thickened Mold-Resistant Silicone Mat

$3.78

New Pirelli Tire 255/40R20 101W AO PZERO PZ4 with Silent Cotton Original Fit for Audi A6L

New Pirelli Tire 255/40R20 101W AO PZERO PZ4 with Silent Cotton Original Fit for Audi A6L

$1,358.00

Oriental Pearl Dual Porcelain Jar Gift Set: Green Tea, Black Tea, Jin Jun Mei, Pu'erh Loose Leaf Tea in Porcelain Jars

Oriental Pearl Dual Porcelain Jar Gift Set: Green Tea, Black Tea, Jin Jun Mei, Pu'erh Loose Leaf Tea in Porcelain Jars

$149.00

Purified Water Bucket Stand Inverted Water Dispenser Pump Simple Mineral Water Drinking Machine Press Pump

Purified Water Bucket Stand Inverted Water Dispenser Pump Simple Mineral Water Drinking Machine Press Pump

$10.80

New Children's Gouache Paint Brushes DIY Hand-Painted Graffiti Art Class Watercolor Acrylic Paint Brushes Bristle Round Tip Brush

New Children's Gouache Paint Brushes DIY Hand-Painted Graffiti Art Class Watercolor Acrylic Paint Brushes Bristle Round Tip Brush

$6.41

Natural Clear Quartz Fully Clean Untreated Faceted Round Rice Beads - For Women's Bracelets, Spacer Beads, and DIY Crafts

Natural Clear Quartz Fully Clean Untreated Faceted Round Rice Beads - For Women's Bracelets, Spacer Beads, and DIY Crafts

$6.63

Sponge Brushes for Kids' Crafts and Creative Painting - Student Art Stamping Tools, DIY Sponge Paintbrushes

Sponge Brushes for Kids' Crafts and Creative Painting - Student Art Stamping Tools, DIY Sponge Paintbrushes

$13.86

Jiuchenggong Liquan Ming Tang Dynasty Ouyang Xun Yao Mengqi Copybook, Regular Script Brush Calligraphy Workbook, 3 Volumes, 188 Pages

Jiuchenggong Liquan Ming Tang Dynasty Ouyang Xun Yao Mengqi Copybook, Regular Script Brush Calligraphy Workbook, 3 Volumes, 188 Pages

$17.90

Shaped Watercolor Paper Ticket Stubs - Blank Postage Stamp Bookmarks with Serrated Edges, Thickened 300g Premium Cotton Pulp, Fine Texture for Art Hand Painting, Easy Blending, High Absorbency, Wrinkle-Resistant - Perfect for Postcards and Creative Cards

Shaped Watercolor Paper Ticket Stubs - Blank Postage Stamp Bookmarks with Serrated Edges, Thickened 300g Premium Cotton Pulp, Fine Texture for Art Hand Painting, Easy Blending, High Absorbency, Wrinkle-Resistant - Perfect for Postcards and Creative Cards

$9.85

Naitong Automatic Retractable Air Hose Reel with PU Braided Hose for Pneumatic Tools and Car Detailing

Naitong Automatic Retractable Air Hose Reel with PU Braided Hose for Pneumatic Tools and Car Detailing

$119.00

Premium Wall-Mounted Aromatherapy Empty Bottle – 100ML Plastic Square Diffuser Bottle with Wall-Mount Adhesive Sticker

Premium Wall-Mounted Aromatherapy Empty Bottle – 100ML Plastic Square Diffuser Bottle with Wall-Mount Adhesive Sticker

$2.98

Leyingfang Floating Pen for Kids' Water Drawing, Colorful Water-Soluble Suspended Markers, Erasable Watercolor Pens

Leyingfang Floating Pen for Kids' Water Drawing, Colorful Water-Soluble Suspended Markers, Erasable Watercolor Pens

$13.80

Loose Rose Quartz Beads, Donghai Agate, Chalcedony, Jadeite, and Madagascar Pink Crystal for DIY Jewelry Making

Loose Rose Quartz Beads, Donghai Agate, Chalcedony, Jadeite, and Madagascar Pink Crystal for DIY Jewelry Making

$6.72

Expandable Stainless Steel Sink Rack, Multi-Function Kitchen Drain Board for Fruits, Vegetables, and Utensils

Expandable Stainless Steel Sink Rack, Multi-Function Kitchen Drain Board for Fruits, Vegetables, and Utensils

$14.90

Transparent Retainer Case Aligner Storage Box Portable Carry-On Squeeze Bag Orthodontic Appliance Rubber Band Cleaning Box

Transparent Retainer Case Aligner Storage Box Portable Carry-On Squeeze Bag Orthodontic Appliance Rubber Band Cleaning Box

$18.50

Transparent Data Cable Organizer Bag for Travel - Portable Multi-Use Visible Storage for Digital Chargers and Cable Management

Transparent Data Cable Organizer Bag for Travel - Portable Multi-Use Visible Storage for Digital Chargers and Cable Management

$7.36

Finished Seal Calligraphy Finished Stone Stamp Sellos Chines

Finished Seal Calligraphy Finished Stone Stamp Sellos Chines

$108.58

Chunfei Grocery Store Commuter Hard Fork Low-Beam Mountain Bike for Urban Roads, Suburbs, School, and Outings

Chunfei Grocery Store Commuter Hard Fork Low-Beam Mountain Bike for Urban Roads, Suburbs, School, and Outings

$2,247.00

6-Cavity Large Square French Flower DIY Soap Silicone Mold for Essential Oil and Milk Soap

6-Cavity Large Square French Flower DIY Soap Silicone Mold for Essential Oil and Milk Soap

$4.93

Home Balcony Vegetable Planter - Self-Watering Plastic Pot for Strawberries and Succulents

Home Balcony Vegetable Planter - Self-Watering Plastic Pot for Strawberries and Succulents

$28.00

Pressure Swing Adsorption Nitrogen Generator - High-Purity Nitrogen Device for Heat Treatment

Pressure Swing Adsorption Nitrogen Generator - High-Purity Nitrogen Device for Heat Treatment

$36,456.00

6-Cavity 3D Rose Silicone Mold for DIY Soap Making Heat-Resistant Non-Stick Large Size for Milk Soap and Essential Oil Soap

6-Cavity 3D Rose Silicone Mold for DIY Soap Making Heat-Resistant Non-Stick Large Size for Milk Soap and Essential Oil Soap

$5.80

Traditional Handmade Baby Teething Rattle Sheepskin Wooden Clapper Newborn Toy Intangible Cultural Heritage

Traditional Handmade Baby Teething Rattle Sheepskin Wooden Clapper Newborn Toy Intangible Cultural Heritage

$29.85

Manufacturer Supply ZSJC02 Film Splicing Table, Alignment Table, Film Inspection Table

Manufacturer Supply ZSJC02 Film Splicing Table, Alignment Table, Film Inspection Table

$4,484.00