wip: still bug in selecting sensors.
Something is resetting the state but not the history.