how to make a buzzer play a tone arduino code example Example: buzzer tone arduino tone(pin, frequency, duration) // duration in ms and optional