A medical pump including an electromagnetic emitter and detector is
provided. The emitter emits electromagnetic radiation of a predetermined
wavelength. A pump set that is compatible with the medical pump modifies
the emitted electromagnetic radiation when properly installed in the
pump. The detector receives electromagnetic radiation, and a filter
circuit excludes electromagnetic radiation having a wavelength other than
the predetermined wavelength. The pump monitors the filtered signal to
determine whether the received electromagnetic radiation corresponds to
the emitted electromagnetic radiation as modified by a properly loaded,
compatible pump set and determines whether a compatible pump set is
properly loaded in the pump as a function thereof.