In this paper, we propose the design of an optical system based on two parallel suspended silicon nanowires that support a range of optical resonances that efficiently confine and scatter light in the infrared range as the base of an all-optical displacement sensor. The effects of the variation of the distance between the nanowires are analyzed. The simulation models are designed by COMSOL Multiphysics software, which is based on the finite element method. The diameter of the nanocylinders (d = 140 nm) was previously optimized to achieve resonances at the operating wavelengths (lambda = 1064 nm and 1310 nm). The results pointed out that a detectable change in their resonant behavior and optical interaction was achieved. The proposed design aims to use a simple light source using a commercial diode laser and simplify the readout systems with a high sensitivity of 1.1 × 106 V/m2 and 1.14 × 106 V/m2 at 1064 nm and 1310 nm, respectively. The results may provide an opportunity to investigate alternative designs of displacement sensors from an all-optical approach and explore their potential use.