automatic sensor selection, fixes #6