I switched from Arduino IDE to ESPHome for my custom ESP32 smart home devices, and my projects got a lot easier
ESPHome is the sole reason I was able to build several ESP32 smart sensors without losing my patience
We haven't written up this one. XDA Developers has the full story — the link below goes straight to it.