I’m curious why someone might reach for an RPI for a project like this? The last Pi I was using was consuming something like 8 watts while idle. That’s like $1.50 a month in electricity here in the Bay Area...
Many times, an arduino or esp32 would be more than capable with considerably less power usage.