Hello.
I would like to suggest to add a scheduler for ambient recordings.
For example: start at 11 pm, record for 5 minutes, repeat choose(every X hour, everyday, weekly, dayly mon-fry, weekends).
Phone can be set in plane mode or lost connection. In this case scheduler can prevent it from breaks in monitoring.
Best regards!