Skip to content

Instantly share code, notes, and snippets.

// only 1 sensor to test
const int led = 8;
const int echo = 3;
const int trig = 2;
const long wait = 1000; //cooldown time for the sensor
unsigned long last = 0;
int spots = 4; // the number im trying to update each time the sensors are triggered