thread-based management of multiple sensors added to the system
updated query for planB
stats lib updated