This sensor device is built to measure the amount of current being used, especially in power supplies as the design is based on Arduino. The main component used is the ACS712 sensor from Allegro ...
Piezo Trigger Switch circuit described here is a microcontroller-compatible shock/impact sensor switch module works on 5VDC supply. The whole circuit can be assembled on a 5×7 cm common circuit board.