You will need a multimeter to do the job (in voltmeter mode).
Removing
1. We prepare the car for work («Preparing the car for maintenance and repair»).
2. By pressing the latch, disconnect the block of the wiring harness from the sensor.
3. Using a 13 mm socket wrench, unscrew the bolt securing the sensor to the cylinder block.
4. Remove the sensor together with the mounting bolt...
... remove the bolt from the sensor.
Examination
1. Connect a multimeter to the sensor terminals (in voltmeter mode with a measurement limit of up to 200 mV).
2. Metal object (bolt, screwdriver) lightly tap on the sensor, while voltage surges should be observed on the voltmeter. A defective sensor does not respond to shocks. In this case, we replace it.
Comment. More accurately, the sensor can only be checked on a special stand.
Installation
Install the sensor in the reverse order of removal.