Arduino code for modem