Electrical discharge machining (EDM) is important unconventional machining process in which utilizes electrical spark energy to remove the material from the workpiece. In such process, the workpiece and tool electrode has to be separated with the constant air gap throughput the machining process for producing the discharge energy. In the present study, an endeavor has been made to automate the flushing mechanism for enhance the machinability by monitoring the gap voltage in EDM process. It has been observed that the proposed approach can reduce the unwanted arcing effect in a considerable way. © 2019 IEEE.