Adding LCD display on my project(clothes dryer)

Hi Everyone,

Please help. I would just like to ask regarding my build (attached is the schematic). How to edit/write an additional code for my program displaying on the LCD if sensor is NOT sensing "DRYER(1st line) VACANT(2nd line)" and if sensor is sensing "DRYER(1st line) ON GOING(2nd line)" (attached is the sample display ).

Here is my initial working code without the LCD code display yet.
int MotorPin = 13;
int inputPin =2;
int val = 0;

void setup() {
pinMode(MotorPin,OUTPUT);
pinMode(inputPin,INPUT);
}
void loop() {
val = digitalRead(inputPin);
if (val==HIGH)
{
digitalWrite(MotorPin,LOW);
delay(500);
}
else
{
digitalWrite(MotorPin,HIGH);
delay(500);
}
}

Thank you very much! Hope to hear from anyone. :slight_smile:

schematic.png

display.png

schematic.png

display.png

Have a look at Arduino - LCD I2C tutorial