How do you know when baby is wanting the boob or just sucking for comfort?

Kelsey
Ill breastfed baby and he will still suck his hands. I never know when its ok to give a paci because what if hes hungry? I always offer boob instead. Do you have a way of telling? When, do, you give a paci? Always or special times.?