Added logic to switch the GPIO on and off based on the text command