//DIY Analog D-Pad int adc_sw; void setup() { Serial.begin(9600); // 9600 bps adc_sw = 0; } void loop() { adc_sw = analogRead(0); // read the value from voltage divider Serial.println(adc_sw); delay(1000); // to see the output }