Problem with LCD shield attached

Hello

I'm working on a schoolproject where i'm trying too make a plant watering system, i have two LEDs to indicate low or good soilmoisture value and an LCD for displaying text and the value from the soilmoisturesensor.

By themselves it works just fine, i can get the LEDs too indicate and the LCD to display what i want. But when i click on the LCD shield and try to do both at the same time it won't work. The LCD works but the LEDs do nothing.

I've attached my code.

I'm using a standard arduino uno R3 and a LCD keypad shield from DF Robot. If anyone could help i would very much appriciate it:)

( as a bonus if anyone can tell me how to add an"%" after the value on the LCD display i would be very happy)

fuktighetsm_tare.ino (810 Bytes)

(deleted)

You made my friday night:) Thank you!

There is no % in the hd44780 LCD controller character set. Use the create custom character functtion of the LCD library that you are using. See the example that comes with the library.