Calibrate a TDS Probe Against a Cheap Pen
Learn how to align your server’s TDS readings with a handheld pen using tank water, avoiding the trap of trusting uncalibrated sensors that drift into silence.

Most new builders trust the number before they verify the source. That is the trap. A TDS probe sitting in a cup of water will spit out a value immediately, and nothing about it looks wrong until you compare it to a reference and find the gap is wide enough to lose a turtle in. The Smart Turtle Tank book opens its final chapter with exactly this, under a heading that sums it up: calibrating once. This post covers the one-time calibration procedure for the TDS probe, why you must do it against a known reference, and how to store the result so your server stops guessing.
One caveat, straight from the book: this is general guidance for the sensor build described in the series. Your species may want different numbers, so check a care sheet written for it, and ask a reptile vet if anything looks off.
The trap: trusting the raw voltage
The usual way people find out their TDS probe is lying is that the alert fires during a water change, or stays silent when the tank is dirty. The book's answer is to treat the probe as a voltage reader first and a ppm counter second. Without calibration, the server has no idea if 0.42 volts means 100 ppm or another value. You must give it a reference point.
The layout picture in Chapter 1 shows where everything ends up; this chapter is the reasoning for each position and the routine after. For the TDS probe, the rule is simple: only the wand goes in the water, up to the top of the two metal pins. Keep it out of the filter outflow, which carries bubbles that will confuse the conductivity reading.
The procedure: cup, pen, and factor
The calibration is a one-time setup. You do not need expensive solutions if you have tank water and a cheap handheld TDS pen. The book calls this step calibrating once, and it requires you to write the numbers down somewhere that survives, because they are settings on the server and nowhere else.
- Fill a cup with tank water.
- Place the TDS probe in the cup.
- Place the handheld TDS pen in the same cup.
- Wait for both readings to stabilize.
- Set the factor
Kso the server's calculated ppm matches the pen's display.
The book notes that you can also use a 342 ppm calibration solution, which is the standard reference for these probes. If you have the solution, follow the same process: probe and pen in the cup, adjust K until the numbers agree. This step aligns your server’s internal math with physical reality.
Set the send interval to one minute from the server while you do this, then back to five. This ensures you see the data flowing correctly during the calibration window without flooding your database.
The trap: forgetting the baseline
Even a calibrated probe drifts if you do not establish a baseline. The book warns that the sensor turns three slow problems into early numbers, which is exactly as much as three cheap probes can do. It will not tell you ammonia or nitrite. It will not see a turtle that has stopped eating. But it will tell you when the water chemistry shifts significantly from its starting point.
To set this anchor, wait until the tank is freshly changed. Press Water changed in the app. That stores the current TDS as the baseline the alerts work from. Without this step, your alerts are measuring against empty air or arbitrary zeros, making them useless for detecting gradual buildup from feeding or filtration failure.
The soak test: verifying stability
Before trusting the alerts, the book prescribes a 48-hour soak with everything in place and a notebook. You are not just checking if the probe works; you are checking if the system holds together under real conditions.
Rows per day in the Durable Object should be about 288 for the sensor. If you see fewer, your send interval or sampling rate is wrong. Check staleness: does the Water card go Lagging and Offline when you unplug the XIAO, and come back on its own? This confirms the buffer works.
Pull the router's power for an hour. The buffered readings should arrive with the right timestamps once the connection returns. If they do not, your watchdog timer or retry logic is failing. Watch for false alerts: there should be none in 48 hours, or the thresholds need widening. You can simulate issues with a cup of water and no turtle in it. Warm the cup to 86 °F and get the temperature alert; add salt and watch TDS climb; add soil and watch clarity drop. This proves your thresholds are sensitive enough to catch real changes without screaming at random noise.
The routine: maintenance and memory
Calibration is not a one-and-forget task if you want accuracy over months. The book outlines a weekly routine tied to the water change. Change 25 to 50 percent of the water. Press Water changed again to update the baseline. Rinse the TDS probe under tap water and wipe the optical head of the turbidity probe with a soft cloth. Biofilm on the probe reads as cloudy water, which skews both clarity and potentially conductivity if left unchecked.
Check the drip loops are still loops. Every cable gets a U-shaped drip loop below the box, so water runs off the bottom of the loop instead of walking along the cable into the electronics. Glance at the 7-day chart. A TDS line that climbs faster than last week indicates more feeding or less filtering. This visual check complements the automated alerts and catches trends before they become crises.
Every six months, check the UVB bulb date and look at the box for condensation. Condensation inside the electronics box can cause short circuits or corrosion, which might affect the ADC readings if it reaches the pins. The electrical limits section notes that XIAO pins are 3.3 V only, and moisture can bridge connections, leading to erratic voltage readings that no amount of software calibration can fix.
Checklist
- Cup test: Place TDS probe and handheld pen in tank water; adjust
Kuntil server ppm matches pen. - Standard option: Use 342 ppm solution if available for higher precision.
- Baseline set: Press Water changed in the app after a fresh water change to anchor alerts.
- Interval tweak: Set send interval to one minute during calibration, then revert to five minutes.
- Soak verification: Run 48 hours of data; check for ~288 rows per day and zero false alerts.
- Weekly rinse: Rinse TDS probe under tap water during every water change to prevent biofilm buildup.
- Drip loops: Verify all cables have U-shaped loops below the electronics box to prevent water ingress.