Biofouling in marine optical sensors poses a significant challenge as it can compromise data accuracy and instrument functionality. This study investigates the effectiveness of local chlorine generation by seawater electrolysis in mitigating biological fouling and extending the operational lifespan of optical oceanographic instruments. Eight similar turbidity probes integrated with a local chlorine generation system, along with a turbidity probe constructed from ABS and another from PLA with copper filament, were developed for testing in the marine environment. The chlorine probes were designed into two groups: four utilizing standard FTO glass and four featuring FTO glass coated with platinum nanoparticles. Each set of probes employed different excitation currents for chlorine generation. All probes underwent laboratory calibration using formazine before deployment in a coastal environment for 97 days. The findings demonstrate a correlation with higher electrical power leading to prolonged operation intervals free from biofouling interference. Additionally, probes coated with platinum nanoparticles demonstrate higher performance in comparison to those with standard FTO glass. The copper probe did not effectively shield the optical transducers from microfouling, although it effectively demonstrated its efficacy in protecting the structural housing of the device. Overall, this work offers a compelling in situ demonstration of local chlorine generation as a promising strategy for enhancing the performance and longevity of optical oceanographic instruments in marine environments.