I am esp32 expert and embedded system electronics engineer.
i have used esp32 in medicine reminder system, where we made a system of multiple devices, each to be placed on medicine bottle cap, that checks if the user has opened the bottle or not ( means user has take his medicine or not) and all devices respond to a master device having esp32, which collects data from all medicines and send to mobile app in the form of push notifications. Also, users were able to set the time of medicines to take for the next month from app.
Please consider sending me a message so that we can discuss further