Correct sensor config iteration logic error

Signed-off-by: Oren Leiman <oleiman@neutral.io>