Which PIN do I need to enter while using UPI at an ATM?

You need to enter your UPI PIN on PhonePe and not your credit/ debit card PIN while withdrawing cash using UPI at an ATM.

Related question(s)
​​​​​​​How do I withdraw cash using UPI ATM?