# Touch (knock) sensor with Piezo

##### If you want to make a simple touch sensor but you don't have the fancy ones around you can also use a piezo element, which come with a lot of basic arduino starter sets.  


What you need:

<table border="1" id="bkmrk-piezo-element-breadb" style="border-collapse: collapse; width: 100%;"><colgroup><col style="width: 33.3333%;"></col><col style="width: 33.3333%;"></col><col style="width: 33.3333%;"></col></colgroup><tbody><tr><td>piezo element

<div>![](https://cdn-reichelt.de/bilder/web/artikel_ws/B400%2FEKULIT-190051.jpg?type=Product&)</div></td><td>breadboard <div>![](https://image.allekabels.nl/image/1446011-0/breadboard-afmetingen-81-x-55-x-8mm.jpg) </div></td><td>resistor 1 M ohm

  
![](https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTBA4twFjVplLxCILOemIsr5NFGbJQkJYWiRA&s)

</td></tr><tr><td><div class="Ter3Ue">piece of paper tape</div><div class="Ter3Ue">  
</div><div class="Ter3Ue">![](https://encrypted-tbn2.gstatic.com/shopping?q=tbn:ANd9GcRQQMlNLQViZ2PP1b8sfp-hSPZUXq4crtlXjPWlL6NVMVDzglMaPLBn3jHA5zJfmCBD8wS55BpYr2IThg77X8QI9b-zlTjYz-PHjaxb4bZ6jDsrj37qDzrK1Ltsos9aeEQJR1HhIg&usqp=CAc)</div></td><td><div>some male/male jumper wires</div>![](https://encrypted-tbn2.gstatic.com/shopping?q=tbn:ANd9GcSBPh7Pdrv9ODMqSLMjVMXjsrnEr44W8WcgVTxxpNXgNYWl6bRWmAiOn_d1w7idwAqiv7Y4kXLzIkOpDRhRsv736tAhMfrBj8Lf2lrDfzwuhcGQKTV_f1MKFQ)</td><td>  
</td></tr></tbody></table>

##### This video explains it all. To make the input visual, open the serial Monitor from the Tools menu.

<iframe allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen="allowfullscreen" frameborder="0" height="427" src="https://www.youtube.com/embed/X3XXRZMBPO0?si=h6yr3887zh71YfDZ" style="width: 759px; height: 427px;" title="YouTube video player" width="759"></iframe>

<div class="img-magnifier-container" id="bkmrk--2"></div><div class="img-magnifier-container" id="bkmrk-breadboard-%C2%A0-resisto"><div class="show" href="https://image.allekabels.nl/image/1446011-0/breadboard-afmetingen-81-x-55-x-8mm.jpg"><div class="Ter3Ue">  
</div></div></div><div class="show" href="https://image.allekabels.nl/image/1446011-0/breadboard-afmetingen-81-x-55-x-8mm.jpg" id="bkmrk--4">  
</div><div class="show" href="https://image.allekabels.nl/image/1446011-0/breadboard-afmetingen-81-x-55-x-8mm.jpg" id="bkmrk--5"></div><div class="img-magnifier-container" id="bkmrk-some-male%2Fmale-jumpe"><div class="show" href="https://image.allekabels.nl/image/1446011-0/breadboard-afmetingen-81-x-55-x-8mm.jpg"><div class="rGxbef" style="height: 161.25px;"><div class="oWZrQ Dby3Ke"><div class="PigVqc" style="animation-name: paused-forward; flex-direction: row;"><div class="hT2TFc" data-ved="2ahUKEwjQ_fGLj76LAxU43AIHHZJ5PTEQ9qcJegQIJRAP" style="display: block;"><div aria-label="Product image 1 of 1" class="R1iPve uhHOwf BYbUcd" id="bkmrk--7" role="img" style="width: unset; height: 100%;">  
</div><div aria-label="Product image 1 of 1" class="R1iPve uhHOwf BYbUcd" role="img" style="width: unset; height: 100%;">  
</div></div></div></div></div></div><div class="col-xs-12 nopadding text-center js_thumb-v2-img js_thumb-img zoom js_zoom sliding cycle-slide cycle-slide-active" style="position: absolute; top: 0px; left: 0px; z-index: 99; opacity: 1; display: block; visibility: visible; padding-left: 0px; height: 382.367px;">   
  
</div></div>