that would require the 'AI' to do something that computers are really good at - detect when a particular event (perfectly toasted) has been achieved via inputs monitored at the millisecond without deviation and then change a state - toasting to not toasting - based on detecting that event.