An anti-fouling technique is developed for the protection of optical instruments from biofouling which leaches a bromide compound into a sample chamber and pumps new water into the chamber prior to measurement. The primary advantage of using bromide is that it is less toxic than the metal-based antifoulants. The drawback of the bromide technique is also discussed.