You would need to focus or rather restrict the field of view of the ir sensor.
I am guessing if there is no powder, there will be a shiny surface inside the bullet casing to reflect the light back.
Coversely, if there is powder, the back of the powder would null this return but only if the ir...