Fix deadlock caused by sensor_lock.
Add support for sweep_done.
Make requests for motion to stop less chatty.