This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 |