Added query for sensor and command ack
Added query functionality for cmd ack