This is really good! I was thinking a while ago about something similar, but wanted the scale to be part of the drip tray of the machine itself, so, in a way, something that I don’t have to worry about and think it’s there: I put the cup on top, it auto-tares, I turn the machine on and then it stops as per your project.
This is really good work, well done!