Design, Development and Optimization of A Flexible Nanocomposite Proximity Sensor