Working on the SwitchSensor implementation