I can certainly relate. Torch Height control is not one of Mach3s easiest things to set up.
Presumably, you have edited the XML to change THC max and min, as default, I seem to remember they are +50 and -3 respectively, which made them problematic for anyone using a G31 probe sequence, which is the favoured probing method used by most post processors. I set mine to +100 and -100.
The red boards are perfectly designed for 6040 style chinese routers, they actually perform well in that role. But only that role.
I tried to do exactly what Swolebro did, from scratch. It worked, perfectly.... in a test rig. Had a DRO and the works.
Mach 3 had other ideas.
I am now back to using my Proma150THC, a cheep, DIN rail mounted solution that has time and again proven itself to be the most reliable option at hand.
They recently brought out a standalone version called THC150SD, which directly controls the Z axis driver, eliminating any need to even communicate torch height control with Mach3 whatsoever. Quite impressive and not a terrible price either. but very rudimentary.