Read the forum guidelines.
Use the IDE autoformat tool (ctrl-t or Tools, Auto format) before posting code in code tags.
What Arduino board? I am assuming a Uno or Nano.
Pins 18 & 19 that you use for the LCD are also the A4 and A5 pins that Wire (I2C) uses.
Edit: Wire is not used so this is, probably, not the cause of the issue, but will need addressed if Wire is to be used.
Post a schematic.
Can you tell us what that means? What sensors? Which one works? Which one doesn't?