Can anyone Help me with my arduino project?

Does anyone know how to make a Piero buzzer vary its volume with a potentiometer? If you know how to do so then please share the code and a picture of it in tinkercad. Please give tips for Arduino UNO

i can vary it from on to off, but no intermediate values. Which type of piezo? Do you have it working right now?

MAYBE - if you post a link to your specific buzzer.

Any tinkercad work is not likely to appear here. You're free to hope, though...

I have had basic success with PWM modulation, but the results were not spectacular.

You only can vary freqency and volume with a piezo speaker, not with an active piezo buzzer.

The toneAC library has a volume function.

volume = map(analogRead(potPin), 0, 1024, 0, 11); // 0-1023 to 0-10
toneAC(frequency, volume);

Leo..