- Orange for LED value
- Blue for slider Value
#define SLIDER_PIN A4
#define LED_PIN 10
float sliderValue; //variable to store sensor value
void setup() {
Serial.begin(9600);
pinMode(SLIDER_PIN,OUTPUT);
}
void loop() {
sliderValue = analogRead(SLIDER_PIN);
Serial.println(sliderValue);
}