sensors: switch position reading bug fixed