#include <LiquidCrystal.h>
LiquidCrystal lcd(12,11,10,9,8,7);
int value;
int port = A0;
int button = 2;
int tipka;
int value1;
void setup() {
lcd.begin(16, 2);
pinMode(port, INPUT);
pinMode(2, INPUT_PULLUP);
}
void loop() {
value = analogRead(port);
value = map(value, 0, 1023, 0, 100);
value1=0;
lcd.setCursor(3, 1);
lcd.print(value);
if(tipka = HIGH) {
value1+=1;
lcd.setCursor(3,0);
lcd.print(value1);
}
}