You dont have to hack anything Sonoff do a th16 (or th10 if your not switching more than 10a)
But neither ate battery operated. Surely if your monitoring a hottub you’ll have a supply you can connect too. I do!
My th16 is within the body of the hottub and connected to the 240v supply. I then have the temp probe coming out through the drink bottle ‘ice bucket’ and into the tub.
The probes are sealed so no issues with chlorine.
Very very similar to your pic but terminated with a 2.5mm jack plug so it’s plug and play
I currently use a Smartthings Multipurpose contact sensor vacuum sealed twice with a pool noodle.
The Good: No problems with connection, battery corrosion, Its a cheep fix, and I get real time monitoring.
The Bad: Battery life is greatly shortened(about 2 Months) I don’t know why yet because I have the same setup in two aquarium canister filters. Both of those are still going after 5 months.
Yes I know but there aren’t a lot of options out there. Figure there worst that can happen is the sensor fails. I do have a couple of the older fibaro contact sensors with these probes for my freezer and they work great. I am still looking for a contact sensor replacement for these probes as I still have there.
If This is a swimming pool, toxic materials from a leaking battery can get into somebody’s eyes. And there’s also a potential galvanic corrosion fire hazard.
Best advice is just not to use any sensors in a pool which are not designed for pools.