Sensor switch