ESPHome is a free and open-source framework for getting firmware to run on cheap microcontrollers like the ESP32, ESP8266, and RP2040. If that sentence sounds complicated to you, don’t worry. ESPHome ...
These are the projects I recommend building instead of just buying something off the shelf.