Design of Piezoelectric sensor and its application