Ah OK, Thankyou!
edit, thanks to your hint, i now have this compiling. the 2 problems were i was using version 1 continuos sampling, not version 2.got it here.EmonLibCM - Version 2.2.1 (Released 30/10/2021)
The compiler was also using the wrong one wire librarys.
Hope this helps!
Best Regards,
James