You can get a better protection with a relay with 3 changeover contacts, which is shown infigure 2.3. The discharge current is limited with the resistors and the ATmega-inputs are discon-nected in the protected mode. But you don’t forget, that the tester remains unprotected during themeasurement sequence.