adding zk for keeping the state about the sensors