update the dynamic sensor detection logic (with issue)
average window added
fix the 0 degree issue
update average method
add support for unreserved and max no of sensors