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)
2018 / New 2024 Rockschool Drum Kit Levels 0-8 Complete with Bonus Audio

2018 / New 2024 Rockschool Drum Kit Levels 0-8 Complete with Bonus Audio

$21.98

Hanyue Cordura N66 Rafting Dry Bag - Ultra-Light Waterproof Storage for Outdoor Swimming and Trekking

Hanyue Cordura N66 Rafting Dry Bag - Ultra-Light Waterproof Storage for Outdoor Swimming and Trekking

$35.70

Sketchbook for Casual Drawing, Acrylic Marker and Watercolor Pad, Square Pocket Art Book, Portable Travel Journal with Thick 230g White Cardstock

Sketchbook for Casual Drawing, Acrylic Marker and Watercolor Pad, Square Pocket Art Book, Portable Travel Journal with Thick 230g White Cardstock

$5.50

Wenxin Tang Calligraphy Copybook for Beginners, Regular Script Duobao Pagoda, Running Script Lanting Preface, Small Kai Lingfei Jing, Brush Character Cards

Wenxin Tang Calligraphy Copybook for Beginners, Regular Script Duobao Pagoda, Running Script Lanting Preface, Small Kai Lingfei Jing, Brush Character Cards

$23.80

Resistor NXBU714 for ABB ACS800 Inverter

Resistor NXBU714 for ABB ACS800 Inverter

$560.00

3D Printing Pen for Kids - Edible Malt Sugar Art DIY Kit for Birthdays (Age 6+)

3D Printing Pen for Kids - Edible Malt Sugar Art DIY Kit for Birthdays (Age 6+)

$39.00

Professional Rotating Car Tire and Wheel Cleaning Rack – Effortless Washing Stand

Professional Rotating Car Tire and Wheel Cleaning Rack – Effortless Washing Stand

$245.00

Nangong Wenfang Three-Character Classic Small Regular Script Copybook – Transparent Cards for Calligraphy Practice Beginners

Nangong Wenfang Three-Character Classic Small Regular Script Copybook – Transparent Cards for Calligraphy Practice Beginners

$69.00

Over-Washing Machine Shelf, Multi-Function Flip-Top Storage Cabinet for Toilet, Bathroom Floor-Standing Unit with No Drilling Required

Over-Washing Machine Shelf, Multi-Function Flip-Top Storage Cabinet for Toilet, Bathroom Floor-Standing Unit with No Drilling Required

$32.88

UGREEN Cable Organizer, Magnetic Desktop Data Wire Fixer, Phone Charging Clip and Cord Collector

UGREEN Cable Organizer, Magnetic Desktop Data Wire Fixer, Phone Charging Clip and Cord Collector

$15.90

Compact Manual Water Pump Dispenser for Home Desktop Use – Mini Hand-Press Faucet for Large Water Buckets

Compact Manual Water Pump Dispenser for Home Desktop Use – Mini Hand-Press Faucet for Large Water Buckets

$23.10

Traditional Sheepskin Rattle Baby Chewable Old-Style Handmade Newborn Wave Drum Toy for Children 0-6 Months

Traditional Sheepskin Rattle Baby Chewable Old-Style Handmade Newborn Wave Drum Toy for Children 0-6 Months

$17.80

Amazon Best Seller Clearance - Outdoor Waterproof Dry Bag for Swimming, Rafting, Snorkeling, and Diving

Amazon Best Seller Clearance - Outdoor Waterproof Dry Bag for Swimming, Rafting, Snorkeling, and Diving

$135.00

Huirui 420AB Fast-Curing Silicone Adhesive - High-Strength Instant Glue for Bonding Silicone Metal Plastic and Velcro

Huirui 420AB Fast-Curing Silicone Adhesive - High-Strength Instant Glue for Bonding Silicone Metal Plastic and Velcro

$36.00

IGBT Module FP15R12KE3/FP25R12KE3/FS50R12KE3/FS75R12KE3

IGBT Module FP15R12KE3/FP25R12KE3/FS50R12KE3/FS75R12KE3

$250.00

3F UL Gear Ventilated Waterproof Dry Bag – Compressible Storage for Sleeping Bags, Clothes, and Swim Gear

3F UL Gear Ventilated Waterproof Dry Bag – Compressible Storage for Sleeping Bags, Clothes, and Swim Gear

$40.80

Martini 100% Cotton Watercolor Paper 200g/300g Thickened Art Sketch Paper 4K Drawing Paper

Martini 100% Cotton Watercolor Paper 200g/300g Thickened Art Sketch Paper 4K Drawing Paper

$12.00

Flameless Aromatherapy DIY Kit - Natural Crystal Diffuser Stones for Home Decor and Demagnetizing

Flameless Aromatherapy DIY Kit - Natural Crystal Diffuser Stones for Home Decor and Demagnetizing

$4.68

[Ali Health] Dental Implant Initial Consultation Package, Oral Cavity Filling, Crown, Denture, and Implant Assessment

[Ali Health] Dental Implant Initial Consultation Package, Oral Cavity Filling, Crown, Denture, and Implant Assessment

$7.90

3M Industrial Scouring Pad for Polishing, Cleaning, and Rust Removal - Bulk Factory Supply with Aluminum Oxide

3M Industrial Scouring Pad for Polishing, Cleaning, and Rust Removal - Bulk Factory Supply with Aluminum Oxide

$7.20

Bull Socket Storage Box - Multi-Outlet Power Strip with Cord, Home Multifunctional Desktop Cable Organizer, Power Junction Board

Bull Socket Storage Box - Multi-Outlet Power Strip with Cord, Home Multifunctional Desktop Cable Organizer, Power Junction Board

$85.90

Used Car Tires 80-90% New, Sizes 165/185/195/205/215/235/60/70/75 R13/R14/R15

Used Car Tires 80-90% New, Sizes 165/185/195/205/215/235/60/70/75 R13/R14/R15

$65.00

BBP Angular Contact Ball Bearings 7000 7001 7002 7003 7004 7005 7006-E-J

BBP Angular Contact Ball Bearings 7000 7001 7002 7003 7004 7005 7006-E-J

$14.08

Baby Rattle with Teether for 0-1 Year Olds; Ideal Gift for Children's Day

Baby Rattle with Teether for 0-1 Year Olds; Ideal Gift for Children's Day

$14.80

Meiyike Granular Sheep Manure Fertilizer, Fermented and Composted for Vegetables and Flowers, Home Potted Plants, Garden Soil Activator

Meiyike Granular Sheep Manure Fertilizer, Fermented and Composted for Vegetables and Flowers, Home Potted Plants, Garden Soil Activator

$37.54

Face Towel Storage Box Wall-Mounted Bathroom Tissue Holder

Face Towel Storage Box Wall-Mounted Bathroom Tissue Holder

$2.98

Baby Rattle Toy - Chewable Wooden Handheld Drum with Sheepskin, Traditional Newborn Toy for Boys and Girls

Baby Rattle Toy - Chewable Wooden Handheld Drum with Sheepskin, Traditional Newborn Toy for Boys and Girls

$13.00

Mineral Water Bucket Inverted Stand 6L Bottle Pump Dispenser Manual Pressure Water Extractor for Water Coolers

Mineral Water Bucket Inverted Stand 6L Bottle Pump Dispenser Manual Pressure Water Extractor for Water Coolers

$2.09

Marie's Sketch Blending Stumps & Makeup Sponges – Professional Art Supplies for Students

Marie's Sketch Blending Stumps & Makeup Sponges – Professional Art Supplies for Students

$6.06

Compact Home Range Hood, Portable USB Desktop Smoke Extractor for Hot Pot and BBQ Odor Removal

Compact Home Range Hood, Portable USB Desktop Smoke Extractor for Hot Pot and BBQ Odor Removal

$39.00