Some experiments based on interferometry, such as studying refractive index changes, need a long time to be completed, and any movement or oscillation in the order of wavelength during that time may wash out the interference fringes or at least reduce the quality of the interferogram. In this work, a new technique is presented to enhance the interferometric data during such experiments. The main idea behind this technique is the use of a reference beam to monitor all surrounding changes during the experiment. Laser light was divided into two parallel beams and then entered into a Mach-Zehnder interferometer. One of the beams was used as a reference signal to measure interferometer drift and the other one was passed through the sample to measure the refractive index changes simultaneously in a single interferometer. Noise was extracted from the data with a written computer code to achieve a noise-free output.