Reading a Solar Boiler Water Level Probe with an ESP32-H2

How a common solar boiler probe reads water level and temperature with just four wires, and how I turned it into a Zigbee tank controller.
Oct 10, 2026 — 8 mins read — Projects

Reading a Solar Boiler Water Level Probe with an ESP32-H2

If you have ever looked at a solar water heater sitting on a roof, there is a good chance it has a strange looking metal probe stuck inside its tank. That probe does two jobs at once. It tells the controller how full the tank is, and it tells it how hot the water is. I recently built a Zigbee device around one of these probes, and in this article I want to show you how the probe works so you can use one in your own projects.

The project came from a real request. A production facility uses water from a solar boiler to wash its equipment, and for that equipment to be sterile the water has to be at least 60°C. My job was to make sure there is always as much water as possible available at that temperature. To do that, my device reads the level and temperature from the probe and uses a relay to open a valve and add more water to the tank when it is needed.

Before we get into it, a quick thanks to PCBWay for sponsoring this project. They offer PCB fabrication and assembly, CNC machining, 3D printing and rapid prototyping, and they are currently running their 9th project design contest with prizes up for grabs until January 24th, 2027.



What This Probe Actually Does

The probe is a long tube with several metal rings along its length, separated by plastic sections. It goes into the boiler from the top of the collection tank and hangs down inside it. As the water rises, more and more of those rings end up under water, and that is how the probe knows where the level is.

Inside one of the sections near the bottom, between all the wires, there is also a 10k NTC thermistor. A thermistor is a resistor that changes its value with temperature. An NTC type goes down in resistance as it gets hotter, so by measuring its resistance we can work out the temperature of the water.


Why 60°C Matters

You might think that a solar heater on a sunny day is never short of hot water. The problem is actually the opposite. During normal operation the water in the tank can get much hotter than 60°C. That is more heat than we need, but the tank also only holds so much water.

So the trick is to add cold water when the tank is too hot. The cold water mixes with the hot water and brings the whole tank down closer to 60°C, which means we end up with a lot more usable water at the right temperature instead of a smaller amount of very hot water. As people use the water during the day, the device can keep refilling the tank so the volume stays as high as possible.

In the software I set the upper limit to 62°C instead of exactly 60°C. That gives the system a bit of wiggle room so it does not keep switching on and off right at the edge.


The Electronics

Even though the probe has a lot of wires inside it, only four come out at the end. I read all four with an ESP32-H2, which is a board made for Zigbee. The ESP32-H2 sends the readings over Zigbee to ding.mk, the automation platform I use, and I can control the device from there too.

On the computer, the device shows up with a temperature value, the temperature set point, the water level as a percentage, and a few extra variables that show which mode it is running in. When the probe is just sitting on my bench it shows 0% water, which makes sense since it is completely dry.

The device also has an input that switches it into working mode. When I connected that wire to ground on the bench, it went into working mode and immediately raised a low water alarm, because as far as it knew the tank was empty.


Simulating Water on the Bench

I did not want to fill a tank every time I tested something, so I used a simple piece of wire instead. Water conducts electricity, so when the rings on the probe are under water they get connected to each other through the water. A piece of wire does the same thing.

By touching the bottom section of the probe with the wire and connecting it to the rings above it, I can fake different water levels. When I connected it to one ring, the dashboard showed 50%. Moving it to a lower ring dropped it to 20%. With nothing connected at all, the level falls back to 0%.

Going through the rings one by one, the levels are 20%, 50% and 80%. The next ring does not seem to change anything, and the last one at the top gives 100%. When I connected the wire to the top ring, after a few seconds the reading jumped all the way to 100%. I am still not completely sure why that one ring gets skipped. My best guess is that it has something to do with detecting when the tank is full, because it only connects to the very end of the probe.


How It Works with Only Four Wires

The part I find most interesting is that this probe gets all of those readings out on just four wires.

The white and green wires go to the NTC thermistor, which sits in the second ring of the probe. When I measured those two wires with a multimeter at room temperature, around 25°C, I got a value a little above 10 kilohms, which is exactly what you expect from a 10k NTC.

The other two wires are for the water level. With the probe dry, I measured around 60 kilohms between them. That high value means nothing is connected, so the tank is empty. One of those two wires goes straight to the bottom section of the probe. When I bridged it to the next ring up, the resistance dropped to 30 kilohms. The ring after that brought it down to 20 kilohms, and the next one to 10 kilohms. The ring that gets skipped stayed at 10 kilohms, and the top ring shorts the two wires together, so the resistance drops to zero.

So inside the probe there is a chain of resistors, and every ring that ends up under water cuts out part of that chain. By reading the total resistance, we know how much water is in the tank. It took me a while to figure out all the wiring, but once I did I thought it was a really neat design.


Reading the Probe with a Voltage Divider

A microcontroller cannot measure resistance directly, but it can measure voltage. So for both the thermistor and the level sensor I used a voltage divider. That just means putting a fixed resistor in series with the unknown one and measuring the voltage in the middle.

I used two 10k resistors, one for each measurement. One side of the divider is connected to 3.3 volts, and the other side connects to the probe. The point in between goes to an input pin on the ESP32-H2. As the resistance of the probe changes, the voltage at that pin changes too, and from that voltage the code works out the water level and the temperature. Those values then get packaged up and sent over Zigbee, and the device acts on them.


Alarms, Status Light and the Relay

To make the device useful for the people working at the facility, I added an RGB LED next to the board's own LED. It changes color to show the state of the system, turning green when there is enough water at the right temperature to use, and showing a different color when there is not enough water or the water is not hot enough yet.

When the tank runs empty there is also a buzzer that sounds an alarm. That way people hear right away that there is no more water to use, even if they are not looking at the light.

The most important part is the relay. It controls the valve that opens and lets more water into the tank on the roof. There are two relays on the module, but I only use one of them. The second one is spare in case we need it later.


The Finished Version

What I showed on the bench is the prototype. I built a second version and put everything into a proper box, and that one now lives in the production facility where it controls the water.

For the final install I also added a transfer switch, so the valve can be controlled either by the original solar controller or by my relay. That is a nice safety net, since the original system can still run the tank if it ever needs to.

Since this is a commercial product, I am not sharing the code that runs it. That said, it should be fairly simple to build something similar yourself. Because the device is powered from the mains all the time, I set it up to also work as a Zigbee router. That means it repeats messages for other devices and makes the whole Zigbee network stronger. A good starting point is the Arduino Zigbee examples for the ESP32-H2.


Conclusion

I really had fun figuring out how this probe works. I could not find any documentation for it online, and I have not seen anyone use one in a project, which is surprising since every solar controller for a rooftop boiler I could find seems to use one. They are easy to get, and with just four wires, a couple of resistors and a microcontroller, you can measure both the level and the temperature of a tank. I am sure people will come up with plenty of other uses for them.

If you want to see more builds like this one, subscribe to my YouTube channel because I have some interesting projects coming up next.


Read next

Critical PHP Vulnerabilities CVE-2026-109618 and CVE-2026-109619: What They Are and How to Protect Your Server

If you run a website built on PHP, today is a day to drop what you are doing and check your servers. Two critical vulnerabilities were discl...

You might also enjoy this

DIY Arduino Solar controller - Can we finish this old project together?

About two years ago I started a project that I brought to a general working state and I kind of lost interest in it 😕I'm not really sure wh...