#include <LiquidCrystal.h>
LiquidCrystal lcd (12,11,10,9,8,7);
void setup() {
// put your setup code here, to run once:
pinMode(3, INPUT);
lcd.begin(16,2);
}
void loop() {
// put your main code here, to run repeatedly:
lcd.setCursor(2, 0);
lcd.print("Room: ");
if(digitalRead(3) == 1){
lcd.print("Dark");
}else{
lcd.print("Light");
}
}