Doesn’t the ESP32 have internal pull-up resistors, thereby making that extra resistor unnecessary?
If you have an "old fashioned" 24VAC line, you could add a rectifier and buck/step-down power module to drop that to 5VDC. Or just unhook the 24VAC transformer and install a 5VDC one.
It would have been neat to see how much the RGB ring lighting up white helps in no/low light cases. All in all, nice writeup!
pin:
number: GPIO14
mode: INPUT_PULLDOWN
This is a suggestion based purely on two minutes of web search, not on experience, though.[0] https://github.com/thatguy-za/esp32-cam-doorbell/blob/main/e...