void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
int sensor_reading = analogRead(A0);
Serial.println(sensor_reading);
int this_pitch = map(sensor_reading, 400,1000,120,1500);
tone(8, this_pitch, 100);
delay(5);
}