sensord: fix bug with incorrect bit operation