Here is the code I'm running on my ESP32 as of Summer 2024 (This is based on V2 of SensESP)
The setup is using examples found on the excellent SensESP pages here - https://github.com/SignalK/SensESP
I now have engine temperature, exhaust temp & Oil Temp, engine RPM, engine room environmental, engine runtime using the ESP uptime and (estimated) fuel consumption which is using the engine RPM and fuel burn info from the Volvo Penta documents. I have recently added a bilge monitor to this project.
Please make sure you add the following additional dependencies to your platformio.ini file, located under 'lib_deps', also check the latest version of these dependencies (Thanks Techstyle). I've uploaded my file as a reference.
SensESP/OneWire@^2.0.0
adafruit/Adafruit BMP280 Library @ ^2.5.0
Videos of my setup can be found on our YouTube channel - https://www.youtube.com/c/BoatingwiththeBaileys
Hope this is helpful and my thanks to all the talented people writing the code and continuing to develop these projects!