Skip to main content
1 of 2
Sigma
  • 296
  • 4
  • 13

You do something like this

unsigned long timerMesurement = 0;

void loop()
{
  If(millis() - timerMesurement > 5UL ){ 
  timerMesurement = millis(); 
  auto measurement = analogRead(A0); 
  }
}
Sigma
  • 296
  • 4
  • 13