Hello and welcome.
It could be that the fingerprint sensor is dirty. You could try cleaning it with a very slightly damp cloth and solution designed for eyeglasses. Again, VERY slightly damp, or you could damage the iPhone, and end up with an out of warranty/physical damage repair.
C