I built a pool water temp sensor using an ESP32 and a DS18B20. I drilled a hole in the pump intake pipe, installed it and now I always know the temp of the pool.
I cant find the original page I used to build it but it wasnt hard and there are similar guides online. Here is the code I am using on the ESP32
esphome: name: esp-pool-temp
esp8266: board: esp01_1m
Enable logging
logger:
Enable Home Assistant API
api:
ota: password: "fa053faa36e5d6600a5613086aaca3ca"
wifi: ssid: password: fast_connect: true
Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Pool-Espboard Fallback Hotspot"
password: "MCueN8HiEEvS"
captive_portal:
Example configuration entry
dallas:
- pin: GPIO4
Individual sensors
sensor:
- platform: dallas address: 0xE93C01D607349D28 name: "Pool Temperature"
- platform: wifi_signal name: "WiFi Signal" update_interval: 60s