Adding Arduino Code
Commented PIC code

Update PIC code with comment on the function of the code