Artificial pancreas
A machine that constantly measures the level of glucose (sugar) in the blood and, in response to an elevated level of glucose, releases an appropriate amount of insulin to lower the level into the normal range.
In this respect, the machine functions like a pancreas.