come avere delay diversi??

ho letto questo argomento,
se ho capito bene, devo usare il sensore come nel sito invece usa il led e il codice mio del buzzer lo devo inserire dove dice
// here is where you'd put code that needs to be running all the time.

// check to see if it's time to blink the LED; that is, if the
// difference between the current time and last time you blinked
// the LED is bigger than the interval at which you want to
// blink the LED.
giusto o sbagliato?