Sensor switch for limit head carriage