Protection device for a speed sensor, the sensor being provided with a reading surface which is arranged at a first determined distance from an encoder of a contact rolling bearing, and the protection device being coupled to the contact rolling bearing, and presenting a housing for the sensor, and at least one scraping element which is arranged in such a way as to face the encoder itself in order to remove any eventual impurities from the encoder.