// code from https://www.instructables.com/Heart-Rate-Monitor/, BhattaG int POT_PIN = D0; // analog output pin for the potentiometer void setup() { Serial.begin(9600); } void loop() { Serial.println(analogRead(POT_PIN)); delay(500); }