This issue happens when the camera gets blocked by the glass or if AUTO POWER OFF is not DISABLED

 

 

MAKE SURE AUTO POWER OFF IS DISABLED

https://www.pbisupport.com/help/how-to-disable-auto-power-off

 

 

This video will show the steps with autofocusing and how the camera takes pictures