My buzzer is causing disorder

Hello,
I am making a thermometer with an arduino uno. When the temperature reaches a certain temperature, a buzzer activates. The problem is that when the buzzer is activated, my temperature value becomes unstable (It goes to higher values than the actual normal value of the temperature).
I tried to use a condensator but the temperature with the buzzer ON remains unstable.
Does anyone know how to fix this?

What type of buzzer is it ?
How is it powered ?
How is it connected to the Uno ?
How is the Uno powered ?

That type of buzzer: https://www.amazon.com/Electronic-Resistance-Electromagnetic-Impedance-Universal/dp/B07YG74FVL
I have one wire that goes from the digital pin 13 of my arduino to the buzzer and an other connected to GND.
and the Uno is powered by my computer with usb

Hi,
Buzzer resistance = 16 Ohms
Voltage applied to Buzzer = 5 V

Output pin current = V / R = 5 / 16 = 0.3125 Amps.

That is 315mA, the output pins are rated at 40mA max.

You are overloading the Uno.

Tom... :smiley: :+1: :coffee: :australia:

thx :pray:

Also, my buzzer is making a weird noise for a second when i'm booting the Uno. it's a short "tik tik tik tik" sound. Can i remove it?

Hi,

Use a pin other than D13.

Tom.... :smiley: :+1: :coffee: :australia: