Design of nanoscale responsive polymer film for sensor application