Updated Arduino code to reduce transmitted data bytes