So the pin 11 wire is connected to all of the buttons on the Keurig, on/off, large, medium, small, and menu. It just outputs different voltages when each is pressed. In the global section add variables for each value to make it simpler to understand....