use buzzer in arduino code example Example: buzzer tone arduino tone(pin, frequency, duration) // duration in ms and optional