Make sure that you have the latest version of iOS or iPadOS. Make sure that your fingers and the Touch ID sensor are clean and dry. * For the Touch ID sensor, use a clean, lint-free cloth to wipe off any dirt or debris. Your finger should cover the Touch ID sensor completely, touching the surrounding metal ring.
If Touch ID isn't working on your iPhone or iPad - Apple Support