Changed the arduino code so it would actually work.