AID systems function by continuously monitoring blood glucose levels through a CGM. The data collected is sent to an insulin pump, which uses pre-programmed algorithms to calculate the necessary insulin dose. The pump then delivers the insulin via a catheter inserted under the skin. This continuous feedback loop helps maintain blood glucose levels within a target range.