Arduino sending data with checksum CRC16

Please do not post pictures of text. Use copy and paste instead.

You will not be able to debug this program until you learn to properly print out and inspect variable values.

One of your problems is that you are mixing Serial.write and Serial.print, for example in sendToUART, which results in uninterpretable data appearing on the screen. Please learn the difference between these two calls. Use one or the other, as the circumstances require.

And get rid of the String variables. They add complications that you do not need at this point.