// by Whitney O'Reardon // June 2021 const int button = 12; // digital pin # for button int buttonState = 0; // HIGH or LOW void setup() { Serial.begin(9600); pinMode(button, INPUT); } void loop() { // read the state of the pushbutton value: buttonState = digitalRead(button); // send certain message based on if button is pressed if (buttonState == HIGH) { Serial.print('1H'); delay(100); } else { Serial.print('1L'); delay(100); } }