Смотреть видео: button - Using a pushbutton to power Arduino on and off - Arduino Stack Exchange