There’s no need to make this an app on a smartphone. For mere dollars we can build this out of off the shelf components, as a small single purpose device. Make it Bluetooth compatible if you want.
I’d rather get a custom device if my life depends on it.