Merged code 'rx.ino', which implements check_sum