int potVal;
int number;
float buzzDelay = 1000;
void setup() {
// put your setup code here, to run once:
pinMode(8,OUTPUT);
Serial.begin(9600);
pinMode(A5,INPUT);
}
void loop() {
// put your main code here, to run repeatedly:
potVal = analogRead(A5);
buzzDelay=(9940./1023.)*potVal+60;
digitalWrite(8, HIGH);
delayMicroseconds(1000);
digitalWrite(8, LOW);
delayMicroseconds(1000);
Serial.println(potVal);
}