Added toggle for connecting to the arduino