Design of pressure sensor and its applications