An erythromycin (ERY) detection method is proposed using the fiber optic core decorated with the coatings of silver and an over layer of ERY imprinted nanoparticles. Synthesis of ERY imprinted nanoparticles is carried out using miniemulsion method. The operating range of the sensor is observed to be from 1.62x10(-3) to 100 mu M while the sensor possesses the linear response for ERY concentration range from 0.1 to 5 mu M. The sensing method shows a maximum sensitivity of 205 nm/M near ERY concentration of 0.01 mu M. The detection limit and the quantification limit of the sensor are found to be 1.62x10(-3) mu M and 6.14x10(-3) mu M, respectively. The sensor's applicability in real samples is also examined and is found to be in good agreement for the industrial application. The sensor possesses numerous advantages like fast response time (< 15 s), simple, low cost, highly selective along with abilities towards online monitoring and remote sensing of analyte.