Arduino code from COS 436