Added the final Arduino code.
Added final Raspberry Pi code.