Fixed the Arduino loop