Dfrobot Gravity UART CO2

It has proper power. I'm a little hung up on this code. It doesn't seem right to me. Does it not seem right to anyone else? I'm pretty sure it's whacky code, but then again, maybe there is something I don't know and just want someone else's feedback.