Key fob dead battery vs. lockout: how to tell what went wrong

https://acornmetric.com/s/FgAAlNoOKhVdaKuSPw-Oi

A key fob that won't unlock a car can be confusing: is the battery dead, or is it a lockout issue? A dead battery usually gives no response at all, or a weak signal only at close range, while a lockout from a forgotten code or transmission error might still power the fob's light. Trying the physical key hidden inside the fob can often open the door; if the car then starts with the fob in a designated spot, battery was likely the problem.