const int potPin = A0;
const float adc = 1023.0;
void setup() {
Serial.begin(9600);
}
void loop() {
int rawValue = analogRead(potPin);
float norValue = rawValue / adc;
Serial.println(norValue);
delay(500);
Copyright ⓒ TECH79 All right reserved