 //int PROXY_SENS_THRESH = 1;      // the threshold value, if we get closer by PROXY_SENS_THRESH cm we trigger an action.
 int PROXY_SENS_TRIGGER_DISTANCE = 4;    // trigger distance in cm. if we get closer we trigger an action.
 uint32_t PROXY_SENS_TRIGGER_SLEEP = 1000;  // time in ms we don't trigger another action if one was triggered.
-uint32_t PROXY_SENS_PING_SLEEP = 100;       // time in ms we wait between pings.
+uint32_t PROXY_SENS_PING_SLEEP = 70;        // time in ms we wait between pings.
 uint32_t proxy_sens_last_ping = 0;          // last time we sent a ping.
 
 NewPing sonar( proxy_sens_trig, proxy_sens_echo, proxy_sens_max_distance );

// connection notes:
// Has to be connected to digital pins (NOT A...)
// Gnd -> GND
// Echo -> 4
// Trig -> 12
// Vcc -> +5V


  // simple stuff, if we are closer than 4cm trigger an action.
  if( current_distance < PROXY_SENS_TRIGGER_DISTANCE ){
    switchLights();
    proxy_sens_last_action_triggered = ps_current_time;
  }
}

