If I were to build it, I would ditch the touch sensor entirely, and use an accelerometer, which can be much simpler to implement, along with offering additional functionality Better yet, don't worry about the hardware, and just use an internet button, which contains everything you need for a project like this. Then again, that's how I built these, so I might be biased: