What is the procedure for testing a diode sensor?