Code for using an Arduino with a Raspberry Pi