  }
  if (millis() >= pingTimer3) {
    pingTimer3 = pingTimer2 + (pingSpeed / 2); // Make sensor 2 fire again 50ms after sensor 1 fires
-   distanceValues[2] = sonar3.ping_cm();
+   // distanceValues[2] = sonar3.ping_cm();
+   distanceValues[2] = readSensor();
    // All three sensors pinged, process results here
    Serial.print("Ping 3: ");
    Serial.print(distanceValues[2]); // Convert ping time to distance and print result (0 = outside set distance range, no ping echo)

#include <NewPing.h>

//Max and Min value for the distance sensor
float maxDistance = 200;
float minDistance = 10;

// # Cable management sensors #

#define NUMBER_STRIPS 3

#define PIN_SWITCH 2

#define PIN_SENSOR 4

Adafruit_NeoPixel strip = Adafruit_NeoPixel(NUMBER_LEDS, PIN_STRIP, NEO_GRB + NEO_KHZ800);

