 //enable standby
 digitalWrite(STBY, LOW);
 }
-

char past;
int count;
int threshold;
void setup() {
  Serial.begin(9600);
  pinMode(STBY, OUTPUT);

// Analog pin to which the sensor is connected
const byte sensorPin = A0;
const byte sensorPin2 = A1;
const byte backleft = A6;
const byte backright = A7;
const byte frontright = A2;
const byte frontleft = A3;

// Window size of the median filter (odd number, 1 = no filtering)
const byte mediumFilterWindowSize = 5;
unsigned int distance;
unsigned int distance2;

// Create an object instance of the SharpDistSensor class
SharpDistSensor sensor(sensorPin, mediumFilterWindowSize);
