An adapter is described for providing fluid to a device from a fluid source. The adapter has a housing with an inlet extending through the housing for connecting the fluid source to the device. The adapter also includes a latching component to secure the adapter to the device. The adapter further includes a tab having embedded magnets in a specific magnet configuration. The device has a sensor capable of detecting the specific magnet configuration. The device can be connected to other adapters, and identifies the fluid source based on the magnet configurations of the adapters.