Strange characters on the LCD mid program

Hey,

I’m working on a project and mid-program my LCD start showing strange characters.
I tried to solve this problem by adding a 4,7µF capacitor and adding a 100ms delay before I print.
I also made sure I only print to the LCD once.
All of this didn’t solve the problem.
The program works 100% if I’m not adding any sensors etc.
I added a picture of my setup, the sensors I’m using and the strange characters on the LCD.
Any tips how I can solve this problem?

thanks in regards.

DB_LMK351_E.pdf (533 KB)

How does it behave when you temporarily remove the relay?

Don

floresta:
How does it behave when you temporarily remove the relay?

The LCD works without the sensors and with the relay.
The LCD doesn't work(mid-program) with the sensors and without the relay.

That pins down the likely source of the problem pretty well.

Don