Weaning off boob

How do you know when baby is trying to wean and its not just teething or not hungry or whatnot....