I want to use a piezo sensor like this one: https://www.amazon.com/Spikenzielabs-SpikenzieLabs-Dice-Kit-Blue/dp/B07QXLG5WR/ref=sr_1_4?keywords=electronic+dice+kit&qid=1656116459&sr=8-4 to wake my raspberry pi (I currently have it set to sleep the screen after 15 minutes of inactivity). I want to glue it under a desk and have it so that when I knock on the desk, the screen will wake up and display the PI's desktop. I think I might be able to wire the wires of the piezo sensor to some of the pins of the pi (all of which are currently available) but I was wondering if I should run a script or if there's some setting I should enable?
Does anyone have any experience implementing something like this?
Thanks for your time.