Added BUTTON_LOGIC to control voltage logic for button