Active Piezo Buzzer The code make buzzer beeping every one second and print the mode to the serial port.