Updated Arduino Sketch