LCD displays random characters

Keep it simple. Forget the sensor data for the moment.

Use a sketch to print to every position on your LCD.

If you can't do it reliably, you fix it!

.