Protecting the fingerprint sensor against damage caused by the finger