TinyML is an incredibly powerful piece of software, and you can easily train your own model and deploy it on an ESP32.