#include <LiquidCrystal.h>
LiquidCrystal lcd(13,12,11,10,9,8);
void setup() {
// put your setup code here, to run once:
pinMode(A0, INPUT);
lcd.begin(16,2);
}
void loop() {
// put your main code here, to run repeatedly:
int t=analogRead(A0);
lcd.setCursor(0,0);
lcd.print(t);
if(digitalRead(t)<=25){
lcd.setCursor(6,1);
lcd.print("HIGH");
}
else{
lcd.setCursor(6,1);
lcd.print("LOW");
}
delay(500);
}