As an alternative I recommend using ESPHome
A simple program that exposes temperature readings from all connected ds18b20 temperature sensors in prometheus format
By default the server listens on pot 80 and exposes data at /metrics
This project expects the sensor(s) to be connected to pin 4. If you want to use a diffrent pin make sure to edit the GPIO_DS18B20_0 define in main.c
This project has dependencies in the form of submodules.
Make sure to clone the repository with the --recursive flag to download them
To build this project you will need the ESP-IDF toolchain
I recommend using Visual studio code as it make the entire process much easier.
When configuring the project make sure to put your WI-FI credentials in the Wifi configuration section
This project uses esp32-ds18b20 and esp32-owb
The code in this project is licensed under the MIT license - see LICENSE for details.