Multiple tasks from one if-statment

If your buzzer is an active buzzer, wire the buzzer (+) leg to redPin (3) and remove the buzzer loop.