I've automated almost all of my diabetes management into a level I basically can look into graphs and decide the level I want my glucose to go.
For glucose monitoring I use Dexcom G5 sensors[0] and xDrip[1] open source monitoring application for Android.
Insulin delivery is handled by a Accu-Chek Spirit Combo[2] pump, that is one of the rare pumps with a Bluetooth connection. The entity deciding the basal rates and corrections is an open source Android app called AndroidAPS[3].
As an insulin I use the fastest available analog Fiasp from Novo Nordisk, that works 10-15 minutes after injection.
All of these combined together has dropped my A1c results from 7.5% to 5.5%, being 90% of the time between 4.0 mmol/l and 8.5 mmol/l, and having no severe hypoglycemias. Basically I got myself some more years to live without any complications and in general I feel much better when I can sleep my nights without worrying and can eat whatever I want whenever I want.
Oh, and a warning to everybody who tries this: Accu-Chek will not cover any damage, there is nobody taking any responsibility of the results from the treatment you get out of the software. For me this works much better than any other treatment, but for others it might be even dangerous.
[0] https://www.dexcom.com/g5-mobile-cgm
[1] https://github.com/NightscoutFoundation/xDrip/
[2] https://www.accu-chek.com/insulin-pumps-integrated-systems/c...
[3] https://github.com/MilosKozak/AndroidAPS/