upload this code and the resistance of each button will be shown on screen
/* Arduino 2x16 LCD Detect Buttons resistance */
#include <LiquidCrystal.h>
//LCD pin to Arduino const int pin_RS = 8; const int pin_EN = 9; const int pin_d4 = 4; const int pin_d5 = 5; const int pin_d6 = 6; const int pin_d7 = 7;
const int pin_BL = 10;
LiquidCrystal lcd( pin_RS, pin_EN, pin_d4, pin_d5, pin_d6, pin_d7);
void setup() {
lcd.begin(16, 2);
lcd.setCursor(0,0);
lcd.print(" Press Any Key "); lcd.setCursor(0,1); lcd.print("Resistance:"); }
void loop() { int x; x = analogRead (0); lcd.setCursor(12,1); lcd.print (analogRead (0)); lcd.print(" "); delay (500); }