We research and compare products using published specifications, features and owner feedback. When you buy through our links, we may earn a commission. As an Amazon Associate I earn from qualifying purchases. Learn more›

DIY Optical Auto Top Off: A Step-by-Step Build for Reef Tanks

Learn how to build a DIY optical auto top off for your reef tank. Covers sensor placement, wiring, reservoir setup, and calibration for stable salinity.

Updated November 2026

A DIY optical auto top off uses a light sensor to detect when your reef tank’s water level drops, then runs a pump to replace the evaporated water. Done right, it keeps salinity steady and spares you from topping off by hand every day. This guide walks through the parts, placement, and calibration you need to build one that works reliably.

How an Optical ATO Works

An optical sensor pairs an infrared emitter with a receiver mounted on opposite sides of a small glass or acrylic tube. The tube connects to the sump or display tank, so its water level mirrors the main tank. When the water drops below the sensor’s beam, the receiver sees more light, triggers a relay, and powers a pump that moves fresh water from a reservoir. When the level rises back to the beam, the pump shuts off.

Shopping for one? See our guide: 5 Best DIY Auto Top Off Aquarium Builds for Reef Tanks (2026).

Because the sensor reacts to the presence of water rather than to a float, it has no moving parts to stick. That makes it a popular choice for hobbyists who want a simple, low-maintenance build.

Build Steps

  1. Mount the sensor tube on the sump wall at the level you want to maintain. Keep it about 1/8 inch below the normal waterline so small ripples don’t trigger it.
  2. Fit the emitter and receiver on opposite faces of the tube, aligned so the beam crosses the water column.
  3. Wire the receiver output to a relay or a dedicated ATO controller. Confirm the relay can handle your pump’s amperage.
  4. Connect the pump to the relay and run its intake into a freshwater reservoir with a lid to slow evaporation.
  5. Use an ATO-safe outlet or a surge protector with an independent shutoff for the pump.
  6. Power up the system and check the sensor response by lifting the water level manually.
  7. Adjust the sensor’s threshold until the pump runs on a rising level and stops reliably.
  8. Run the system for several days while monitoring the reservoir and sump before trusting it unattended.

Placement Details

Keep the sensor tube out of direct splash zones and away from return-pump turbulence. A tube that sits in choppy water will chatter and cause the pump to cycle. If your sump has a baffle, place the tube on the side with the calmest surface.

Choosing the Reservoir Setup

Use a food-safe container with a tight lid and place the pump intake above the bottom so sediment stays out of the line. Dedicate this reservoir to RO/DI water only, and treat it as a separate container from your salt-mix buckets. For a fuller walkthrough of reservoir construction, see DIY Auto Top Off Reservoir: A Step-by-Step Build for Reef Tanks (2026).

Calibration and Safety Checks

Calibration is where most DIY systems succeed or fail. Set the sensor threshold so the pump starts only after the level drops a small amount, then shuts off before the water reaches the overflow. Test the pump’s shutoff by simulating a stuck-on condition: if the relay fails closed, you want a second safeguard, such as a float switch or a timed cutoff, to stop the flow.

Verify the system weekly by checking the reservoir level and confirming that salinity in the display tank hasn’t drifted. Owners often report that a sensor fouled with algae or salt creep needs a gentle wipe every few weeks to keep its response consistent.

Common Mistakes

  • Mounting the sensor where surface agitation causes repeated false triggers.
  • Using tap water or an unsealed container in the reservoir, which invites contamination and salinity swings.
  • Skipping a backup shutoff, so a failed relay can flood the sump.
  • Leaving the sensor tube dirty, which weakens the beam and shifts the threshold.
  • Running the system unattended before confirming it works for several days.
  • Standard submersible return pump for ATO duty: A small, quiet pump rated for freshwater transfer keeps the topping cycle gentle on the tank. View on Amazon
  • Relay or ATO controller board: A dedicated relay isolates the high-voltage pump from the low-voltage sensor circuit. View on Amazon
  • Food-safe reservoir with lid: A sealed container slows evaporation and keeps contaminants out of your topping water. View on Amazon

FAQ

Can I use tap water in a DIY optical ATO?

No. Tap water carries minerals, chlorine, and phosphates that can raise nutrients and disrupt your reef. Use RO/DI water in the reservoir.

How often should I clean the sensor?

Many hobbyists wipe the sensor tube every few weeks, or sooner if you notice salt creep or algae buildup. Check the response after cleaning.

Is a DIY optical ATO safe for my tank?

It can be when built with a backup shutoff and proper electrical protection. If you are unsure about wiring mains-powered equipment, consult a qualified electrician.

Conclusion

A DIY optical auto top off is a practical upgrade for any reef tank that loses water between manual top-offs. Careful sensor placement, a sealed RO/DI reservoir, and a backup shutoff will keep the system dependable. Test it thoroughly before trusting it overnight.

Caleb Morgan

About Caleb Morgan

Caleb Morgan is part of our editorial team and reviews and edits our reef & saltwater aquariums guides, checking product details against manufacturer specifications and owner feedback.

About the author

Caleb Morgan
Caleb Morgan

Caleb Morgan writes reviews and buying guides for My Reef Aquarium.