A refrigerator includes a cabinet defining a fresh food compartment and a door pivotally mounted to the cabinet and including an interior surface in communication with the fresh food compartment when the door is closed. A shelf unit is disposed adjacent the interior surface of the door, and a container is supported by the shelf unit. A fill mechanism is positioned vertically above the container and the container is configured to receive liquid from the fill mechanism. A sensor is configured to sense a property of the container or liquid received in the container. A control is in communication with the sensor and regulates a dispensing of liquid into the container based upon the sensed property. The sensor utilizes a capacitive sensor located adjacent to the container.