Question d’entretien chez iRhythm Technologies

How would you detect a button press using a microcontroller?