Fix sensors

builds on #386, here fixing the test failures introduced in #384