Synthesis and characterization of piezoelectric thin films as functional materials for sensing