Esternal probe boiler with ESP

Hi everyone, I have an underfloor heating boiler.
On the boiler there is the possibility to connect an external solder which detects the external temperature and on the basis of the set curve changes the boiler temperature.
Unfortunately, it is very difficult to pass wires from the boiler to the outside.
How could I take advantage of a connected esp module you have two pins of the external boiler sensor to get the external temperature of one of my sensors already active in Ha?